TS6053: File not found - in CI
tsc was told to compile a specific file that does not exist at the given path.
What this error means
tsc fails with TS6053 naming a path from the files array, an extends, or a reference that is missing.
tsc
error TS6053: File '/app/src/main.ts' not found.Common causes
How to fix it
Fix the path in tsconfig
- Update the files entry to the real path with exact casing
tsconfig.json
{
"files": ["src/main.ts"]
}Ensure the file is present in CI
- Confirm the checkout includes the path; avoid sparse checkouts that drop it
shell
ls -la src/main.tsHow to prevent it
- Keep tsconfig files entries current and verify CI checks out all referenced source paths.
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…
TS6059: File is not under rootDir - in CIFix "error TS6059: File 'x' is not under 'rootDir'. 'rootDir' is expected to contain all source files" when t…
TS5083: Cannot read file tsconfig.json - in CIFix "error TS5083: Cannot read file 'tsconfig.json'" when tsc runs in CI - a missing config path, a bad exten…