Skip to content

ng new --style=sass generates scss files #13574

Closed
@frankadrian

Description

@frankadrian

🐞 Bug report

Command (mark with an x)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Did not test it on versions prior to 7.3.0

Description

When generating a new app and selecting sass from the prompt, scss files are generated.
Also the angular.json file tries to reference styles.sass which does not exist.

🔬 Minimal Reproduction

ng new app
routing -> no
styles -> sass

🔥 Exception or Error

No Error, but when running `ng serve´ inside newly generated app it thows this error:


ERROR in multi ./src/styles.sass
Module not found: Error: Can't resolve '/Users/frank/Development/ng-test/src/styles.sass' in '/Users/frank/Development/ng-test'
ℹ 「wdm」: Failed to compile.

🌍 Your Environment



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 7.3.0
Node: 8.11.4
OS: darwin x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.0
@angular-devkit/core         7.3.0
@angular-devkit/schematics   7.3.0
@schematics/angular          7.3.0
@schematics/update           0.13.0
rxjs                         6.3.3
typescript                   3.2.2

screenshot 2019-02-01 at 20 47 47

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