I am getting following error when running ng serve...
PS F:\\Projects\\RecipeApp> ng serve
Invalid JSON character: \"\\\"\" at 76:13.
Error: Invalid JSON char
Open the file in Notepad++ and change the encoding to UTF-8 then save it will work for sure :)
I just had the same issue as described while using the "ng g c" command. The issue was that I forgot a comma (,) while adding a second style-sheet to the angular.json file.
Hope this helps someone, Vlad
Make sure angular.json encoding in UTF-8
not UTF-8-BOM
.
Its mainly due to the syntax error in angular.json file. make sure there is a comma (,) in every end of the previous line. and also check the slash ( / and \ ) in path. use "/" instead of "\".
Check your Angular.json.
It seems that this config file is not correct.
Update for clarification:
A misplaced "/" in the angular.json
will create exactly that kind of error.
Looks like you've added a path in the angular.json file with "\" instead of "/".