tsc 7.0.2: TS5112 tsconfig.json is present but will not be loaded if files are specified on commandline
@btw-aak▲ 5 net votes
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.