tsc 7.0.2 --strict: undeclared identifier -> error TS2304: Cannot find name 'foo'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts2304.ts containing: console.log(foo); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2304: Cannot find name 'foo'.