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.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →