Sourcemaps not generated after Quasar update anymore
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.
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 ?
dobbel 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.
We have an issue for it and are looking into it: https://github.com/quasarframework/quasar/issues/7318
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.
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?
I’ve narrowed down the cause and am making progress. Can confirm it’s definitely auto import related.
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 .
@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.
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?
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.
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.