Skip to content

angular CLI ng g component error: Unexpected token ] in JSON at position 942 #10938

Closed
@uurrahman

Description

@uurrahman

Hello,

I have updated angular cli and due to some reason i getting this error:

Unexpected token ] in JSON at position 942

ng serve is working properly.

My development environment is:

Angular CLI: 6.0.3
Node: 8.11.2
OS: linux x64
Angular: 6.0.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, platform-browser
... platform-browser-dynamic, router

Package Version
angular-devkit/architect 0.6.3
angular-devkit/build-angular 0.6.3
angular-devkit/build-optimizer 0.6.3
angular-devkit/core 0.6.3
angular-devkit/schematics 0.6.3
angular/cli 6.0.3
ngtools/webpack 6.0.3
schematics/angular 0.6.3
schematics/update 0.6.3
rxjs 6.1.0
typescript 2.7.2
webpack 4.8.3

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