-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v 0.8.7 - mix.sass().options() - Module build failed: Error "...scss" is not in the SourceMap #466
Comments
I just installed Laravel from scratch, added Can you try to reproduce your issue in a fresh app? |
Tried that. Fresh laravel install, run Same error:
After that, i changed the laravel-mix version to 0.8.1 in package.json and i am getting no errors on Probably windows related... |
Hi Jeffrey, I got the same error with a fresh installation on WIndows system with mix.options({ processCssUrls: false }) laravel-mix@^0.8.2: |
having the exact problem as well on Windows, when trying to import another scss files |
Me too..I've same problem after add option url false.. |
Looks like we needed to bump sass-loader and resolve-url-loader dependencies to fix this. I've pushed and tagged it. |
bumped. Seems not working when we follow the steps in Laravel site. Placing the options as a third argument doesn't work either. The |
I'm getting the exact same issues
error in ./sass/app.scss Module parse failed: /Users/noah/Code/le-grav-test/user/themes/limited-edition/sass/app.scss Unexpected character '@' (1:0) |
i dont know why, it am getting this issue back, i checked mix packages.json file, i found that, resolve resolve-url-loader & sass-loader still not bump to 2.0.0 and 6.0.0 |
I get this same error again, it worked yesterday but after a fresh npm install today it does not work anymore |
Tested it with a fresh installation of Laravel, also returns this error.
Create fresh Laravel installation Install node modules Run No errors Disable processCssUrls
|
Same, when I set to Then the error appear. But after I add below to package.json it SOLVED.
|
@Coder77 Thank youuu!!! It worked! |
@Coder77 save my day! Thanks! |
@Coder77 Thanks! |
Thank you @Coder77 |
@Coder77 where exactly did you past "resolve-url-loader": "^2.0.0", "sass-loader": "^6.0.0", on package json |
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. (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 })`The text was updated successfully, but these errors were encountered: