Error compiling .scss file
See original GitHub issueI am trying to compile .scss
files using this loader.
I am getting the error below when I invoke webpack
command:
Hash: 471ab211129c4252e031
Version: webpack 1.7.3
Time: 52ms
+ 1 hidden modules
ERROR in ./dummy.scss
Module parse failed: /home/chandu/www/sass-loader-test/node_modules/sass-loader/index.js!/home/chandu/www/sass-loader-test/dummy.scss Line 1: Unexpected token {
You may need an appropriate loader to handle this file type.
| body {
| background-color: #fff; }
|
I have created a repo to replicate the issue: https://github.com/Chandu/sass-loader-test
When I use node-sass directly I don’t get any error. You can try this running node test.js
from the repo linked above.
chandu@nobuntu:~/www/sass-loader-test$ node test.js
body {
background-color: #fff; }
Am pretty sure I am doing something wrong, but not sure what it is. Can anyone help me with this?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:7
- Comments:42
Top Results From Across the Web
How to resolve this Sass compiling error? - css - Stack Overflow
the error says that there's no container.scss file or it's unreachable and you're trying to import it, check typos for the file name...
Read more >Sass compilation error - HTML-CSS - The freeCodeCamp Forum
I try to compile my sass code to css using the command: “npm run compile_sass” but keeps getting this error message below:
Read more >SCSS Compile Error - Material Design for Bootstrap
Hi, We bought MDB Pro yesterday and have some trouble compiling the SCSS Code. Can someone take a look at this issue?
Read more >Sass: @error
Once the error is printed, Sass stops compiling the stylesheet and tells whatever system is running it that an error occurred. SCSS; Sass....
Read more >Stop using an extension to compile Sass - YouTube
I'm working on a Sass course! - https://beyondcss.dev/?utm_campaign=OlderYouTubeVideos&utm_source=YouTube Links ✓ Stephanie's npm script: ...
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
Would be great if you guys could post a solution once you found it 👍
why. no one. shows. a solution with code. -_-