TS18003: No inputs were found in config file - in CI
tsc loaded the config but its include/files/exclude globs matched zero source files.
What this error means
tsc fails with TS18003 echoing the include and exclude patterns, often from the wrong cwd or a partial checkout.
tsc
error TS18003: No inputs were found in config file '/app/tsconfig.json'. Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["node_modules"]'.Common causes
How to fix it
Point include at real source paths
- Make the globs match where the code lives
tsconfig.json
{
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}Run from the right directory
- Invoke tsc -p ./tsconfig.json from the project root
- Confirm the checkout contains the source directory
shell
npx tsc --listFilesOnly -p tsconfig.jsonHow to prevent it
- Keep include aligned with the real layout and run tsc from a consistent directory with a full checkout.
Frequently asked questions
What causes "TS18003 no inputs found"?
tsc fails with TS18003 echoing the include and exclude patterns, often from the wrong cwd or a partial checkout.
How do I fix TS18003 no inputs found?
Point include at real source paths
Related guides
TS6053: File not found - in CIFix "error TS6053: File 'x' not found" when tsc runs in CI - a files entry or a referenced path that does not…
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…