-
Notifications
You must be signed in to change notification settings - Fork 12k
Error message when angular.json is invalid is not very descriptive #11204
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
Also, I just noticed #5610 which seems to have been addressed, which suggests comment should be allowed and the CLI should not complain about |
This is very frustrating...
Ummm... which file? If I look at the error through a different text output, it reads:
So I'm gonna have to open all the json files with a hex editor I guess... :/ |
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. |
Bug Report or Feature Request (mark with an
x
)Area
Versions
Output of
ng --version
:Repro steps
ng new test-angular
angular.json
and add some invalid input, for example add a comment to the first line.ng generate module New
The log given by the failure
Unexpected token / in JSON at position 0
Desired functionality
angular.json
. Here are some issues which shows other users also had confusion about this:#10843
#10938
#11103
Example: Found an unexpected token / in
angular.json
in line 123 character 45.This is much more descriptive and clearly tells the user that there is a problem in his/her
angular.json
file and the line where the error is found.The text was updated successfully, but these errors were encountered: