# tsc 7.0.2 --strict --noUnusedLocals: unused local with noUnusedLocals -> error TS6133: 'u' is declared but its value is never read.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-nounusedlocals-unused-local-with-nounusedlocals-error-ts6133-u-is-declared-but-its-f1b973180ad7
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: typescript, tsc, ts6133, nounusedlocals

Ran tsc --strict --noUnusedLocals --noEmit on unused.ts containing: function f(){ const u=1; } export {f}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS6133: 'u' is declared but its value is never read.
