tsconfig.json The project file contains invalid JSON
See original GitHub issueI was just trying to get started again with Atom TypeScript on an existing TypeScript project. I created a basic tsconfig.json
, but keep getting an error about The project file contains invalid JSON
.
{
"compilerOptions": {
"target": "es5",
"module": "amd",
"declaration": false,
"noImplicitAny": false,
"removeComments": true
},
"filesGlob": [
"./**/*.ts",
"!node_modules/**/*.ts"
]
}
I get the same error with a tsconfig.json
of
{}
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (12 by maintainers)
Top Results From Across the Web
3 - Stack Overflow
Build: Failed to parse file 'C:/.../tsconfig.json/tsconfig.json': Invalid character. C:\..\VSTSC ... Strangely, there is no tsconfig.json/tsconfig ...
Read more >Permanent warning "Your project contained an invalid value ...
Run npx typescript --init (or add a basic tsconfig.json file); Open the new project in Visual Studio; See the warning showing up in...
Read more >Documentation - What is a tsconfig.json - TypeScript
json file specifies the root files and the compiler options required to compile the project. JavaScript projects can use a jsconfig.json file instead,...
Read more >Project Config with vercel.json
json configuration file lets you configure, and override the default behavior of Vercel from within your project. This includes settings for: buildCommand ...
Read more >Configuring TSLint - Palantir Open Source
tslint.json configuration files may have JavaScript-style // single-line and /* multi-line */ comments in them (even though this ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i can confirm the same bug on AtomBeta under Ubuntu16 and any workarounds I tried out - they don’t work.
Not this fix specifically … but we do rewrite the file if e.g.
files
needs to be updated. That said what we write is correct raw JSON so should be okay with other editors.