Skip to content
Latchkey

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

  1. Update the files entry to the real path with exact casing
tsconfig.json
{
  "files": ["src/main.ts"]
}

Ensure the file is present in CI

  1. Confirm the checkout includes the path; avoid sparse checkouts that drop it
shell
ls -la src/main.ts

How to prevent it

  • Keep tsconfig files entries current and verify CI checks out all referenced source paths.

Frequently asked questions

What causes "TS6053 file not found"?
tsc fails with TS6053 naming a path from the files array, an extends, or a reference that is missing.
How do I fix TS6053 file not found?
Fix the path in tsconfig

Related guides

References

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