You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've built a UMD bundle with Webpack 3.0.0, using devtool: '#source-map' as my source map generation option. It ends up producing a build with multiple //# sourceMappingUrl pragmas. For example:
EDIT: I was having this same issue, but I solved it.
Warning: Unable to read ".../assets/bower_components/es6-shim/es6-shim.map" file (Error code: ENOENT). Use --force to continue.
My issue was I was copying bower_components to my build directory but I was only copying *.js and not *.map as well, so the js files referenced source maps that did not exist in my build directory.
@AlmogCohen My comment describes how i solved it. The sourcemaps were not being copied to the build directory. I believe (hard to remember) i solved this by just copying sourcemaps as well as .js files to the build directory during the build process.
I've built a UMD bundle with Webpack 3.0.0, using
devtool: '#source-map'
as my source map generation option. It ends up producing a build with multiple//# sourceMappingUrl
pragmas. For example:Only the final
build.js.map
exists on disk. But this code finds the firstsourceMappingUrl
and attempts to read it, which results in errors such as:I'm not familiar enough with the source map spec to know how to resolve this, but other tools (gulp, Chrome) seem to read this file fine.
The text was updated successfully, but these errors were encountered: