Open imShara opened 5 years ago
I'm having the same issue, have you found a solution?
Same here, any solution?
I know why this happens, but don't know to fix it properly. Will try to describe.
There is sourceMappingURL
path at end of .js
file
blablascript
// # sourceMappingURL=script.js.map
Webpack builds all scripts into vendors.app.js
and there is sourceMappingURL of scripts too.
Browser tries to find source map file at relative path, but there is no that files. Then, if we will change source maps paths to root-oriented
blablascript
// # sourceMappingURL=/script.js.map
and put sourcemaps to /static
dir, browser can find this files and error will gone.
Why nuxt/webpack doesn't cut it from vendors.app.js
? Why not to build vendors.app.js.map
?
Part of http://localhost:3000/_nuxt/vendors.app.js