TS5083: Cannot read file tsconfig.json - in CI
tsc could not read a tsconfig at the path it was given, either the main config or one named in extends.
What this error means
tsc fails with TS5083 naming the config path it cannot read, frequently a base config referenced by extends.
tsc
error TS5083: Cannot read file '/app/tsconfig.base.json'.Common causes
How to fix it
Fix the config path or extends
- Correct the path passed to tsc -p, or the extends target
tsconfig.json
{
"extends": "./tsconfig.base.json"
}Install a shared base config package
- If extends references a package (e.g. @tsconfig/node20), install it
shell
npm i -D @tsconfig/node20How to prevent it
- Keep extends targets present (committed or installed) and run tsc from the directory the paths assume.
Frequently asked questions
What causes "TS5083 cannot read tsconfig"?
tsc fails with TS5083 naming the config path it cannot read, frequently a base config referenced by extends.
How do I fix TS5083 cannot read tsconfig?
Fix the config path or extends
Related guides
TS18003: No inputs were found in config file - in CIFix "error TS18003: No inputs were found in config file 'x'" when tsc runs in CI - include/files/exclude matc…
TS6053: File not found - in CIFix "error TS6053: File 'x' not found" when tsc runs in CI - a files entry or a referenced path that does not…
TS5023: Unknown compiler option - in CIFix "error TS5023: Unknown compiler option 'x'" when tsc runs in CI - a typo, a removed option, or an option…