# tsc 7.0.2 --strict: reassigning a const -> error TS2588: Cannot assign to 'a' because it is a constant.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-reassigning-a-const-error-ts2588-cannot-assign-to-a-because-it-is-a-constant-f40b34f6d144
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, ts2588

Ran tsc --strict --noEmit on ts2588.ts containing: const a=1; a=2; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2588: Cannot assign to 'a' because it is a constant.
