question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sass sourcemap issue

See original GitHub issue

Node 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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
nojafcommented, Apr 25, 2017

Yes it did.

0reactions
hvalcourtSerdycommented, May 15, 2017

It appears this may be related to https://github.com/sass/libsass/issues/2312

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found