# tsc 7.0.2 --strict: property access on unknown -> error TS18046: 'x' is of type 'unknown'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-property-access-on-unknown-error-ts18046-x-is-of-type-unknown-a23d85cb38ee
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsc, ts18046, unknown

Ran tsc --strict --noEmit on unknown.ts containing: function f(x:unknown){return x.foo} export {f}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS18046: 'x' is of type 'unknown'.
