- Error
- Reported by the tsconfig loader
TS6053
File '{0}' not found.
A file named in tsconfig.json (an `extends` target or a project reference) doesn't exist. Fix the path or install the package.
What it means
The config points at a file that can't be found. ts-r reports this for an extends entry that names a package config which isn't installed (@tsconfig/node22/tsconfig.json is looked up in node_modules) and for a references entry whose path has no tsconfig.json. A relative extends path to a missing file is reported as Cannot read file (TS5083) instead.
Example
{
"extends": "@tsconfig/strictest/tsconfig.json",
"compilerOptions": {
"strict": true,
"target": "es2022",
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true
}
}
export const x = 1;
ts-r-check -p tsconfig.json --pretty false ts-r outputtsconfig.json(2,14): error TS6053: File '@tsconfig/strictest/tsconfig.json' not found.
Recorded by node scripts/verify-examples.mjs with ts-r built from commit 6deaf01.
How to fix
- Install the package that provides the
extendstarget, or correct its name. - Correct a
referencespath; it is relative to the tsconfig.json that contains it.