Skip to content

change default style ext #11032

@soraliu

Description

@soraliu

Versions

Angular CLI: 6.0.0
Node: 8.11.2
OS: darwin x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.6.0
@angular-devkit/core         0.6.0
@angular-devkit/schematics   0.6.0
@schematics/angular          0.6.0
@schematics/update           0.6.0
rxjs                         6.2.0
typescript                   2.7.2

Repro steps

  • exec ng config schematics.@schematics/angular:component.styleext scss -g as the official doc said stories-css-preprocessors

Observed behavior

Invalid JSON character: "s" at 0:0.
Error: Invalid JSON character: "s" at 0:0.
    at _readValue (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/json/parser.js:567:19)
    at parseJsonAst (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/json/parser.js:605:17)
    at Object.parseJson (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/json/parser.js:631:12)
    at normalizeValue (/usr/local/lib/node_modules/@angular/cli/commands/config.js:128:19)
    at ConfigCommand.set (/usr/local/lib/node_modules/@angular/cli/commands/config.js:195:23)
    at ConfigCommand.run (/usr/local/lib/node_modules/@angular/cli/commands/config.js:168:18)
    at /usr/local/lib/node_modules/@angular/cli/models/command-runner.js:278:30
    at Generator.next (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/@angular/cli/models/command-runner.js:4:58)
    at <anonymous>

Desired behavior

don't throw error

Mention any other details that might be useful (optional)

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