-
Notifications
You must be signed in to change notification settings - Fork 12k
Error showed up while run the command ng generate module about
#10880
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
Comments
Perhaps an issue with the encoding of angular.json, it's just a guess based on other related issues. |
Thanks for the reply! The encoding of angular.json is the utf-8 without BOM. And It is a valid json file. Actually I haven't done anything with the angular.json. It is just a new project generated using angular-cli. |
I same problem
display error |
Same thing here. I'd be able to fix it myself if it at least said what file the error was found in.. I've checked every JSON file I can find (including Calling: |
It looks like not just me had the problem, I think it may be an encoding problem, but not sure where it is. |
When I searched for the issue (to see if it already existed), yours was the first of many that had come up.
Yeah, same issue here. Running a linter and |
Alright, my issue's fixed. It appears the error's caused by something being wrong in |
I’ll try it to see if it works for me. |
I have found the problem. check the angular.json file.
just remove the comma after "src/assets" and "...default.css"
then will fix the problem. Thanks to @xlxAciDxlx ! |
I do not have the commas, which you mention and I keep giving the error. |
@leoliuasia Glad you were able to get it fixed :D @hitokiri Did you try running your |
@hitokiri May be you need to check the other positons that not same as my. Or just use the JSONLint tool mentioned by @xlxAciDxlx |
@leoliuasia thank you! I had the same error and running my angular.json through json found the issue. There was a comment in the file that I had to remove. ng generate component works now. |
I had comma in tsconfig.json, so try to check all json files in json lint. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
Observed behavior
Same error when run command
ng generate component about
What is happening?
The text was updated successfully, but these errors were encountered: