question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tsconfig.json The project file contains invalid JSON

See original GitHub issue

I 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.

image

{
    "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

{}

image

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
selfrefactorcommented, Jul 1, 2016

i can confirm the same bug on AtomBeta under Ubuntu16 and any workarounds I tried out - they don’t work.

0reactions
basaratcommented, Jul 15, 2015

This fix strips it off

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found