Skip to content
Latchkey

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

  1. Correct the path passed to tsc -p, or the extends target
tsconfig.json
{
  "extends": "./tsconfig.base.json"
}

Install a shared base config package

  1. If extends references a package (e.g. @tsconfig/node20), install it
shell
npm i -D @tsconfig/node20

How 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

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card