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.

v 0.8.7 - mix.sass().options() - Module build failed: Error "...scss" is not in the SourceMap

See original GitHub issue
  • Laravel Mix Version: 0.8.7
  • Node Version: 6.9.5
  • NPM Version: 4.2.0
  • OS: Windows 7

Description:

Updated to mix version 0.8.7 and getting the following error on mix.sass('resources/assets/sass/app.scss', 'public/css').options({ processCssUrls: false }).version();

error in ./resources/assets/sass/app.scss

Module build failed: Error: “…/…/resources/assets/sass/_fonts.scss” is not in the SourceMap. at SourceMapConsumer_sourceContentFor [as sourceContentFor] (C:.…\node_modules\source-map\lib\source-map-consumer.js:704:13) at SourceMapGenerator.<anonymous> (C:.…\node_modules\source-map\lib\source-map-generator.js:235:40) at Array.forEach (native) at SourceMapGenerator_applySourceMap [as applySourceMap] (C:\VM-homestead\Code\laravel\node_modules\source-map\lib\source-map-generator.js:234:32) at MapGenerator.applyPrevMaps (C:.…\node_modules\postcss\lib\map-generator.js:146:22) at MapGenerator.generateMap (C:.…\node_modules\postcss\lib\map-generator.js:194:46) at MapGenerator.generate (C:.…\node_modules\postcss\lib\map-generator.js:297:25) at LazyResult.stringify (C:.…\node_modules\postcss\lib\lazy-result.js:294:24) at C:.…\node_modules\postcss\lib\lazy-result.js:231:27

@ ./resources/assets/sass/app.scss 4:14-183 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

error in ./resources/assets/sass/app.scss

When removing the options part everything works as expected. Tested on a fresh laravel project and getting the same error with mix..options({ processCssUrls: false })`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17

github_iconTop GitHub Comments

19reactions
ganchuhangcommented, Mar 24, 2017

Same, when I set to mix.options({ processCssUrls: false });

Then the error appear.

But after I add below to package.json it SOLVED.

"resolve-url-loader": "^2.0.0", "sass-loader": "^6.0.0",

3reactions
JeffreyWaycommented, Feb 26, 2017

Looks like we needed to bump sass-loader and resolve-url-loader dependencies to fix this. I’ve pushed and tagged it.

2cb8714a7a765346d6967c7c803bb92440c4fbdf

Read more comments on GitHub >

github_iconTop Results From Across the Web

v 0.8.7 - mix.sass().options() - Module build failed: Error ...
v 0.8.7 - mix.sass().options() - Module build failed: Error "...scss" is not in the SourceMap #466.
Read more >
laravel - SASS-LOADER Version 8.0.0 and up - Stack Overflow
1 everything is ok ? This happend when ive upgraded from laravel 6 to laravel 7.4. ERROR in ./resources/sass/app.scss Module build failed (from ......
Read more >
Frequently Asked Questions | Laravel Mix Documentation
ERROR Failed to compile with 1 errors This dependency was not found in node_modules: ... mix.sass('resources/assets/sass/app.scss', 'public/css') .options({ ...
Read more >
Compiling Assets (Mix) - The PHP Framework For Web Artisans
Laravel Mix provides a fluent API for defining Webpack build steps for your Laravel application using several common CSS and JavaScript pre-processors.
Read more >
Laravel-Mix sourcemap files not genarates - Laracasts
This is my config file const { mix } = require('laravel-mix'); ... Mix provides a clean, fluent API for defining some Webpack build...
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