Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 6: Unexpected token ] in JSON at position 970 #11621

Closed
OfficialPesonen opened this issue Jul 21, 2018 · 4 comments
Closed

Angular 6: Unexpected token ] in JSON at position 970 #11621

OfficialPesonen opened this issue Jul 21, 2018 · 4 comments
Labels
area: @angular-devkit/schematics needs: repro steps We cannot reproduce the issue with the information given

Comments

@OfficialPesonen
Copy link

OfficialPesonen commented Jul 21, 2018

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

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

Versions

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.6.8
@angular/cli                      6.0.8
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.8
@schematics/update                0.6.8
rxjs                              6.2.2
typescript                        2.7.2
webpack                           4.8.3

node --version: v8.10.0
npm --version: 6.2.0
Windows (10)

Repro steps

ng g c name

The log given by the failure

Unexpected token ] in JSON at position 970

Desired functionality

I'd like to create Angular component.
Error just randomly occured when I started coding.

Mention any other details that might be useful

@filipesilva
Copy link
Contributor

Heya, can you show us your angular.json file please?

@filipesilva filipesilva added the needs: repro steps We cannot reproduce the issue with the information given label Jul 23, 2018
@Brocco
Copy link
Contributor

Brocco commented Jul 26, 2018

This issue is likely resolved with PR #11132 which is included with the version 6.1.0 release.

@hansl
Copy link
Contributor

hansl commented Jul 30, 2018

Closing this as fixed with PR #11132. If you upgrade to 6.1.1 and this still happens please file a new issue passing in your JSON files.

@hansl hansl closed this as completed Jul 30, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular-devkit/schematics needs: repro steps We cannot reproduce the issue with the information given
Projects
None yet
Development

No branches or pull requests

4 participants