Page URL: https://www.typescriptlang.org/tsconfig/#noUncheckedSideEffectImports https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html
Issue:
TS 6.0 turned on noUncheckedSideEffectImports by default but it causes errors on CSS libraries meeting the following conditions:
- Has entrypoints meeting the following conditions:
- Their names don't end with
.css (e.g. library-name/css)
- Globally imported (
import "library-name/css")
- Doesn't have
"types" fields in their "exports" fields in package.json
Library users bump into TS2882 at import "library-name/css".
The offending pages must provide a guide for CSS library authors to deal with noUncheckedSideEffectImports.
Page URL: https://www.typescriptlang.org/tsconfig/#noUncheckedSideEffectImports https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html
Issue:
TS 6.0 turned on
noUncheckedSideEffectImportsby default but it causes errors on CSS libraries meeting the following conditions:.css(e.g.library-name/css)import "library-name/css")"types"fields in their"exports"fields inpackage.jsonLibrary users bump into TS2882 at
import "library-name/css".noUncheckedSideEffectImports(default since 6.0) tauri-apps/meilisearch-docsearch#219The offending pages must provide a guide for CSS library authors to deal with
noUncheckedSideEffectImports.