Skip to content

Unexpected token / in JSON at position 762 #11103

Closed
@devcer

Description

@devcer

Versions


Angular CLI: 6.0.7
Node: 8.9.4
OS: linux x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.7
@angular-devkit/build-angular     0.6.7
@angular-devkit/build-optimizer   0.6.7
@angular-devkit/core              0.6.7
@angular-devkit/schematics        0.6.7
@angular/cli                      6.0.7
@ngtools/webpack                  6.0.7
@schematics/angular               0.6.7
@schematics/update                0.6.7
rxjs                              5.5.11
typescript                        2.5.3
webpack                           4.8.3

Repro steps

  • Step 1 give command ng g service data to generate a service

Observed behavior

Unexpected token / in JSON at position 762

Desired behavior

A new service should be created in the designated folder

Mention any other details that might be useful (optional)

Was working fine with before angular cli 1.7.x. Updated my cli and I'm completely struck now. couldnt even find any articles to go back from 6.x to 1.7.x

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