sass comile error in new project with style=sass
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.0.0 node: 7.7.3 os: win32 x64 Windows (10)
Repro steps.
ng new sassy-project --style=sass npm install ng serve edit src\styles.sass and add style h1{ color:red; } command console and browser both will show sass comiler error
The log given by the failure.
ERROR in ./~/css-loader?{“sourceMap”:false,“importLoaders”:1}!./~/postcss-loader!./~/sass-loader!./src/styles.sass Module build failed: h1{ color:red; }
^ Invalid CSS after “h1{”: expected “}”, was “{” in E:\Angular2\sassTest\sassy-project\src\styles.sass (line 1, column 4) @ ./src/styles.sass 4:14-195 @ multi ./src/styles.sass
Desired functionality.
it should simply apply the style
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
5 - Stack Overflow
sass ' in 'C:\Users\S\angular\dragonfly' i 「wdm」: Failed to compile. The angular.json file lists scss under project schematics: "schematics": { " ...
Read more >Error while creating new project wtuh SASS [Angular CLI : 7.3.0]
I created a new project ng new appname and selected style as SASS . Once all npm install was finished, I ran the...
Read more >Sass: @use
As a convention, Sass files that are only meant to be loaded as modules, not compiled on their own, begin with _ (as...
Read more >SASS File Watcher error – IDEs Support (IntelliJ Platform)
Hello everyone I'm new to SASS and I get the following error in ... /D /C call C:/Ruby23-x64/bin/sass.bat compile path/to/project style.sass
Read more >Using Sass with the Angular CLI - DigitalOcean
Starting an Angular CLI Project with Sass. Normally, when we run ng new my-app , our app will have .css files. To get...
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 Free
Top 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
Based on the stylesheet content, you want “scss” not “sass”. They are two different formats.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.