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
you probably put commented something in angular.json
I ran into the similar issue when trying to run "ng g ...", and thanks to this post, I found it's because of a comment in the angular.json as above suggested. The error message could be more clear.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
you probably put commented something in
angular.json