# tsc 7.0.2 --strict: import "./nonexistent.css" -> error TS2882: Cannot find module or type declarations for side-effect import of './nonexistent.css'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-import-nonexistent-css-error-ts2882-cannot-find-module-or-type-declarations-for-deb120144384
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, ts2882, modules

Ran tsc --strict --noEmit on side_effect_import.ts containing: import "./nonexistent.css"; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2882: Cannot find module or type declarations for side-effect import of './nonexistent.css'.
