Skip to content

sass comile error in new project with style=sass #5796

@abdul-qadirdeveloper

Description

@abdul-qadirdeveloper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions