TS5023
Unknown compiler option '-c'.
Broken Code ❌
npx tsc -c mytsconfig.jsonFixed Code ✔️
If you want to point the TypeScript compiler to a different configuration, you have to use the --project flag (see all tsc CLI options):
npx tsc --project mytsconfig.json