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 comile error in new project with style=sass

See original GitHub issue

Bug 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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
clydincommented, Apr 2, 2017

Based on the stylesheet content, you want “scss” not “sass”. They are two different formats.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

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.

Read more comments on GitHub >

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

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