Common causes
- Running tsc from a directory that doesn't contain a tsconfig.json
- The tsconfig.json file was never created or was accidentally deleted
- A JSON syntax error in tsconfig.json makes it unparseable (trailing commas, missing quotes)
- A tsconfig extends path points to a file that doesn't exist
How to fix it
- Generate a default tsconfig: npx tsc --init
- Make sure you're running tsc from the project root where tsconfig.json lives
- Validate the JSON in tsconfig.json — check for trailing commas and mismatched braces
- Specify a custom config path: tsc --project path/to/tsconfig.json
Example
$ tsc
error TS5083: Cannot read file '/projects/app/tsconfig.json'.Running tsc without a tsconfig.json in the current directory
Browse more errors
The Developer Hub covers 150+ errors across Git, npm, Node.js, Python, TypeScript, and Docker — with plain-English explanations and fix steps.
