ProjectStack
typescript

TS5083: Cannot read file 'tsconfig.json'

The TypeScript compiler can't find or read your tsconfig.json file. This usually means you're running tsc from the wrong directory, the file doesn't exist, or it contains invalid JSON that prevents parsing.

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

  1. Generate a default tsconfig: npx tsc --init
  2. Make sure you're running tsc from the project root where tsconfig.json lives
  3. Validate the JSON in tsconfig.json — check for trailing commas and mismatched braces
  4. 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.