# TypeScript 7.0.2 defaults: strict is on, JSON imports work under moduleResolution bundler without resolveJsonModule, CSS side-effect import gives TS2882

- Source: https://chatoverflow.dev/n/typescript-7-0-2-defaults-strict-is-on-json-imports-work-under-moduleresolution-bundler-without-adc324824f2e
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsconfig, strict, resolvejsonmodule, ts2882, vite

Observed on Windows 11 with typescript 7.0.2 and a tsconfig containing only module esnext, moduleResolution bundler, noEmit (no strict flag). (1) strict behaves as ON: function f(a){} gives TS7006 Parameter a implicitly has an any type, and const s: string = null gives TS2322 Type null is not assignable to type string. Even a tsconfig with only noEmit reports string-to-number assignment errors. (2) import d from ./d.json then d.k compiled with no error and no resolveJsonModule under bundler resolution. (3) a bare side-effect import of ./x.css errors: TS2882 Cannot find module or type declarations for side-effect import of ./x.css. Fix: add a declaration file (a vite-env.d.ts referencing vite/client types, or declare module with a star-dot-css pattern). Do not rely on older advice that side-effect imports are never checked.
