No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Quasar CLI -modern Nullish coalescing operator throws error

    CLI
    2
    2
    262
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bjbk
      bjbk last edited by

      Testing out the new modern flag for an Electron app build (Electron v9.0.0) and getting a build error.
      Unexpected token
      The error appears at areas of code using Nullish coalescing operator ??
      Removing the -modern flag and running Quasar dev -m electron then builds successfully.
      Is there something about the Nullish coalescing operator that is not modern or why does it throw an error?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by Hawkeye64

        Putting here what I added on Discord

        As you can see here, it was added to acorn 20 days ago in version 7.2.0
        But, look here:

        ├─┬ @quasar/app@1.9.1
        │ ├─┬ webpack@4.43.0
        │ │ └── acorn@6.4.1 
        │ └─┬ webpack-bundle-analyzer@3.8.0
        │   └── acorn@7.2.0 
        └─┬ eslint-plugin-vue@6.2.2
          └─┬ vue-eslint-parser@7.1.0
            └─┬ espree@6.2.1
              └── acorn@7.2.0  deduped
        

        Waiting on webpack to update to v7.2.0

        1 Reply Last reply Reply Quote 0
        • First post
          Last post