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

    Sourcemaps not generated after Quasar update anymore

    CLI
    5
    12
    956
    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.
    • M
      mpr last edited by

      I have the same problem. Until recently debugging of the Quasar App in Chrome worked fine, but now something is going wrong with the source maps.

      As far as I can tell, it seems that the update to @quasar/app >= 1.9.0 brought the problem. It’s also not working with @quasar/app 2.0.1 for me.

      I tried with different strategies for devtool, without the explicit setting and with ‘source-map’.
      (By the way sometimes I see the use of ‘#source-map’. Is the # needed here or not ?)

      Debugging works fine in my environment for a very simple Vue app without Quasar, using webpack 4.43.0 and debugging with IntelliJ and Chrome.

      Has anyone an idea what is going wrong and/or how to fix it ?

      Thanks
      Martin

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @mpr last edited by

        sounds like a pretty serious obstacle for debugging for Quasar. I could not find a github issue about this yet. Maybe a good idea to create one.

        1 Reply Last reply Reply Quote 0
        • Allan-EN-GB
          Allan-EN-GB Admin last edited by

          We have an issue for it and are looking into it: https://github.com/quasarframework/quasar/issues/7318

          1 Reply Last reply Reply Quote 0
          • M
            mpr last edited by

            Thanks a lot. It’s good to know that there is already an issue for it. (Sorry I have not found it myself).

            Good luck for finding the issue.

            1 Reply Last reply Reply Quote 0
            • Allan-EN-GB
              Allan-EN-GB Admin last edited by

              So far it seems it’s related to “auto” import of components.

              Setting the value to all seems to resolve the problem - can anyone else confirm this for me please?

              M 1 Reply Last reply Reply Quote 0
              • Allan-EN-GB
                Allan-EN-GB Admin last edited by

                I’ve narrowed down the cause and am making progress. Can confirm it’s definitely auto import related.

                1 Reply Last reply Reply Quote 0
                • Allan-EN-GB
                  Allan-EN-GB Admin last edited by

                  A fix has been PR’d for this: https://github.com/quasarframework/quasar/pull/7328

                  We’ll be preparing an update early next week all being well which will address this and some other PR’s .

                  1 Reply Last reply Reply Quote 1
                  • M
                    mpr @Allan-EN-GB last edited by

                    @Allan-EN-GB Thanks a lot.
                    I can confirm that using importStrategy: ‘all’ solves the problem immediately.
                    Looking forward to the update and again thank you very much.

                    1 Reply Last reply Reply Quote 1
                    • S
                      Sacrekin last edited by

                      importStrategy: “all” defeats all the tree shaking, so it is not suitable for me. Also, I am using the --modern switch to bypass Babel & compile in ES6. Does that have an impact?

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sacrekin last edited by

                        One request for the fix: in the sourceMap, please do restore the template. At the moment, in one of the multiple sourceMaps generated, one does reflect my source code but the template code is removed from it.

                        1 Reply Last reply Reply Quote 0
                        • Allan-EN-GB
                          Allan-EN-GB Admin last edited by

                          importStrategy: “all” is a temp work around to get your source maps working for dev; we’re not suggesting you release a production app with it. Wait for the update next week for that 🙂

                          I’m not sure what you mean about “restore the template”, however, the fix is in place and will stand as it’s the correct fix for this issue. If there is something else that needs changing please file a feature request on GH issues with a detailed explanation of what and why.

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