nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

Vuetify codemap not found

Open imShara opened this issue 7 years ago • 3 comments

Source map error: request failed with status 404
Resource URL: http://localhost:3000/_nuxt/vendors.app.js
Source Map URL: vuetify.js.map

Part of http://localhost:3000/_nuxt/vendors.app.js

module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;

/***/ })

/******/ })["default"];
});
//# sourceMappingURL=vuetify.js.map

/***/ }),

imShara avatar Oct 11 '18 21:10 imShara

I'm having the same issue, have you found a solution?

Thfona avatar Nov 18 '18 18:11 Thfona

Same here, any solution?

bitk0der avatar Dec 15 '18 12:12 bitk0der

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?

imShara avatar Dec 26 '18 16:12 imShara