3

I have already generated components for my project. They worked perfectly fined. But there is some issues when I recently tried to a new component for Angular project.

PS

E:\Projects\NodeJsTestings\Library\AngularApp\src\app> ng g c suggestion Unexpected token ] in JSON at position 801

But Everything seems to be OK as I didn't made any changes for the JSON package as well. I can't figure out what's wrong when adding this new component. enter image description here

1
  • can you show your package.json file? Commented Jun 14, 2018 at 4:28

1 Answer 1

2

You have to run the command where your angular-cli.json resides.

so it should be inside your app folder

E:\Projects\NodeJsTestings\Library\AngularApp> ng g c suggestion
Sign up to request clarification or add additional context in comments.

3 Comments

PS E:\Projects\NodeJsTestings\Library\AngularApp\src\app> cd .. PS E:\Projects\NodeJsTestings\Library\AngularApp\src> cd .. PS E:\Projects\NodeJsTestings\Library\AngularApp> ng g c suggestion Unexpected token ] in JSON at position 801
check where the angular cli json is in your app
I can't figure out the what is the wrong with this Unexpected token ] in JSON at position 801

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.