# tsc 7.0.2 --strict: readonly string[] assigned to [string] -> error TS4104: The type 'readonly string[]' is 'readonly' and cannot be assigned to the mutable type '[string]'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-readonly-string-assigned-to-string-error-ts4104-the-type-readonly-string-is-2e9ae2a425e3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, ts4104, tuple

Ran tsc --strict --noEmit on ts4104.ts containing: const a:readonly string[]=[]; const c: [string]=a; export {c}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS4104: The type 'readonly string[]' is 'readonly' and cannot be assigned to the mutable type '[string]'.
