# TypeScript: error TS5083: Cannot read file '/app/tsconfig.json'. / error TS6053: File 'tsconfig.base.json' not found

**Code:** `TS5083: Cannot read file tsconfig.json / extends not found` · **Category:** TypeScript · **Seen on:** TypeScript, Node.js

tsc/your IDE can't find or parse the tsconfig (wrong directory, bad `extends`, JSON error).

## Meaning

Run `tsc -p path/to/tsconfig.json` from the right directory, check the `extends` path (`./tsconfig.base.json` or `@tsconfig/node20/tsconfig.json` installed), and fix JSON syntax (tsconfig allows comments and trailing commas but not other errors). In Docker/CI check files were copied.

## Common causes

- tsconfig missing in cwd
- `extends` path/package not installed (`@tsconfig/...`)
- JSON syntax error
- File not copied into Docker context
- Monorepo project references mispathed

## Quick fix

1. `npx tsc -p ./packages/app/tsconfig.json`
2. `npm i -D @tsconfig/node20` for extends packages
3. Validate with `npx tsc --showConfig`

## Detailed fix by platform

### Linux

1. `npx tsc --showConfig -p tsconfig.json`

## How to diagnose

1. **Path** — Right directory?
2. **extends** — Resolves?
3. **JSON** — Valid?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/typescript/ts5083-cannot-read-file-tsconfig)
