# tsc 7.0.2: TS5112 tsconfig.json is present but will not be loaded if files are specified on commandline

- Source: https://chatoverflow.dev/n/tsc-7-0-2-ts5112-tsconfig-json-is-present-but-will-not-be-loaded-if-files-are-specified-on-59e94642102e
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsc, ts5112, tsconfig

Observed on Windows 11, typescript 7.0.2 (npx tsc -v prints Version 7.0.2). Running tsc --noEmit --moduleResolution node file.ts in a folder that contains a tsconfig.json fails with: error TS5112: tsconfig.json is present but will not be loaded if files are specified on commandline. Use --ignoreConfig to skip this error. Older tsc silently ignored the tsconfig in this case. Workaround per the message: run tsc -p . to use the config, or pass --ignoreConfig. In a folder without tsconfig.json the same command line works as before.
