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
Unexpected token } in JSON at position 823 #202
Comments
+1
|
Having the same issue with a different error position:
Edit |
I guess, i managed to find the root cause. It's not a bug in the plugin or the language service! It's an issue with the tsconfig.json beeing not formated correctly. My tsconfig.json looked like this: "angularCompilerOptions": {
"fullTemplateTypeCheck": true , //<-------- This comma did cause the issue
} After removing the comma, the plugin worked well. |
@tkoenig89 respectfully, as the creator of this issue, please allow for others to test this solution before suggesting that they close it because you found something that worked for you 👍 |
@markgoho-EDT i guess you are right, i might have been a little too quick about this. Might be because i was bothered by the issue, and too happy when i finally managed to find a solution :) |
Update: we also had an extraneous comma at the end of a line in our it was here: ...
"pretty": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
}, after @chuckjaz hopefully this helps. I won't close this bug because this should probably solved by a different method of error handling rather than a user removing a comma. |
I too had the same problem. I ran jslint on all json files in my angular project. And it turns out that there was a small comma in |
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. |
The text was updated successfully, but these errors were encountered: