# tsc 7.0.2 --strict: const a=null; a.x -> error TS18047: 'a' is possibly 'null'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-const-a-null-a-x-error-ts18047-a-is-possibly-null-1a787b183b1e
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, ts18047

Ran tsc --strict --noEmit on ts2531_null.ts containing: const a=null; a.x; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS18047: 'a' is possibly 'null'.
