Sass sourcemap issue
See original GitHub issueNode version: v7.7.1 npm version: 4.1.2 Operating system: Windows 10 Anniversary Update Command line used: babel-node tools/build.js Steps to reproduce:
I’m using bootstrap-sass and I’m having an exception on the generation of the source maps.
C:\Users\Moi\live\node_modules\source-map\lib\source-map-generator.js:277
throw new Error('Invalid mapping: ' + JSON.stringify({
^
Error: Invalid mapping: {"generated":{"line":1,"column":26388},"source":"webpack:///Users/Moi/live/src/styles/C:/Users/Moi/live/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss","original":{"line":15,"column":-11},"name":null}
at SourceMapGenerator_validateMapping [as _validateMapping] (C:\Users\Moi\live\node_modules\source-map\lib\source-map-generator.js:277:13)
at SourceMapGenerator_addMapping [as addMapping] (C:\Users\Moi\live\node_modules\source-map\lib\source-map-generator.js:101:12)
at C:\Users\Moi\live\node_modules\source-map\lib\source-node.js:345:13
at SourceNode_walk [as walk] (C:\Users\Moi\live\node_modules\source-map\lib\source-node.js:224:9)
at SourceNode_walk [as walk] (C:\Users\Moi\live\node_modules\source-map\lib\source-node.js:220:13)
at SourceNode_walk [as walk] (C:\Users\Moi\live\node_modules\source-map\lib\source-node.js:220:13)
at SourceNode_toStringWithSourceMap [as toStringWithSourceMap] (C:\Users\Moi\live\node_modules\source-map\lib\source-node.js:336:8)
at ConcatSource.proto.sourceAndMap (C:\Users\Moi\live\node_modules\webpack-sources\lib\SourceAndMapMixin.js:28:32)
at Compilation.<anonymous> (C:\Users\Moi\live\node_modules\webpack\lib\SourceMapDevToolPlugin.js:57:32)
at Array.map (native)
at Compilation.<anonymous> (C:\Users\Moi\live\node_modules\webpack\lib\SourceMapDevToolPlugin.js:43:84)
at Array.forEach (native)
at Compilation.<anonymous> (C:\Users\Moi\live\node_modules\webpack\lib\SourceMapDevToolPlugin.js:42:11)
at Compilation.applyPlugins1 (C:\Users\Moi\live\node_modules\tapable\lib\Tapable.js:75:14)
at self.applyPluginsAsync.err (C:\Users\Moi\live\node_modules\webpack\lib\Compilation.js:630:11)
at next (C:\Users\Moi\live\node_modules\tapable\lib\Tapable.js:138:11)
Is there a way to disable sourcemaps for css?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
SASS sourcemaps not working · Issue #8656 · vitejs/vite · GitHub
SASS sourcemaps don't seem to work correctly. I've stripped down my project to a few SASS files for reproduction, removed all third-party ...
Read more >SASS sourcemaps not working in Google Chrome
I've got it building without errors now, using Ruby Sass 3.6.0, and grunt-contrib-sass. Source maps are still not working, and still not seeing ......
Read more >Sass Source Maps not working in Dev Tools - Bugzilla@Mozilla
When I try this I see this in the console: Source map error: TypeError: NetworkError when attempting to fetch resource. Resource URL: https://evision.aub.ac.uk/ ......
Read more >Using source maps in Sass - Mario Araque
Source maps prevents this problem giving us the method to see in our browser's developer tools the Sass code instead of our compiled...
Read more >Should I Use Source Maps in Production? | CSS-Tricks
A "source map" is a special file that connects a minified/uglified ... that gets imported into global.scss which is compiled to global.css ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes it did.
It appears this may be related to https://github.com/sass/libsass/issues/2312