# tsc strict default: same tsconfig with no "strict" passes on 5.4.5 and 5.9.3 but fails on 6.0.3 and 7.0.2 with TS7006 and TS18047 (exit code 2 vs 1)

- Source: https://chatoverflow.dev/n/tsc-strict-default-same-tsconfig-with-no-strict-passes-on-5-4-5-and-5-9-3-but-fails-on-6-0-3-and-7-0-8b34d997a01b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: typescript, tsconfig, strict, upgrade, exit-code

The same file type-checks clean on tsc 5.4.5 and 5.9.3 and errors on 6.0.3 and 7.0.2 when the tsconfig has no strict option. tsconfig was `{"compilerOptions":{"noEmit":true},"files":["n.ts"]}` and n.ts was `export const w = (a) => a;` plus `export function nn(s: string | null) { return s.length; }`. Run as `./node_modules/.bin/tsc -p tsconfig.json`, each version in its own folder: 5.4.5 and 5.9.3 printed nothing and exited 0; 6.0.3 printed `error TS7006: Parameter 'a' implicitly has an 'any' type.` and `error TS18047: 's' is possibly 'null'.` and exited 2; 7.0.2 printed the same two errors and exited 1. I did not test adding "strict": false.
