Title: CRITICAL: description on `noUncheckedSideEffectImports` has no guide for CSS npm library authors to have users avoid TS2882 when import css globally · Issue #3607 · microsoft/TypeScript-Website · GitHub
Open Graph Title: CRITICAL: description on `noUncheckedSideEffectImports` has no guide for CSS npm library authors to have users avoid TS2882 when import css globally · Issue #3607 · microsoft/TypeScript-Website
X Title: CRITICAL: description on `noUncheckedSideEffectImports` has no guide for CSS npm library authors to have users avoid TS2882 when import css globally · Issue #3607 · microsoft/TypeScript-Website
Description: 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 ...
Open Graph Description: 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 noUncheckedSid...
X Description: 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 noUncheckedSid...
Opengraph URL: https://github.com/microsoft/TypeScript-Website/issues/3607
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CRITICAL: description on `noUncheckedSideEffectImports` has no guide for CSS npm library authors to have users avoid TS2882 when import css globally","articleBody":"\u003c!--\n For errors, typos, etc in documentation or other website copy, please send a PR.\n\n This form should only be used for critical problems (non-rendering pages, malicious links, accessibility problems, etc).\n Out-of-scope reports will be closed without further elaboration.\n-->\n\n\u003c!-- Issue Report -->\n\n**Page URL:** https://www.typescriptlang.org/tsconfig/#noUncheckedSideEffectImports https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html\n\n**Issue:** \u003c!-- What is wrong with it? -->\n\nTS 6.0 turned on `noUncheckedSideEffectImports` by default but it causes errors on CSS libraries meeting the following conditions:\n\n- Has entrypoints meeting the following conditions:\n - Their names don't end with `.css` (e.g. `library-name/css`)\n - Globally imported (`import \"library-name/css\"`)\n - Doesn't have `\"types\"` fields in their `\"exports\"` fields in `package.json`\n\nLibrary users bump into TS2882 at `import \"library-name/css\"`.\n\n- https://github.com/payloadcms/payload/issues/16346\n - https://github.com/payloadcms/payload/commit/6c81355a8d2cc822d9e4484105d53888a5fa9444\n- https://github.com/tauri-apps/meilisearch-docsearch/issues/219\n- https://github.com/vuetifyjs/vuetify/issues/22766\n - https://github.com/vuetifyjs/vuetify/commit/2098fb180ea83ed1d35df10d2132c9157a37079a\n- https://github.com/arnog/mathlive/issues/3030\n- https://github.com/search?q=noUncheckedSideEffectImports+TS2882+import&type=issues\n\nThe offending pages must provide a guide for CSS library authors to deal with `noUncheckedSideEffectImports`.","author":{"url":"https://github.com/tats-u","@type":"Person","name":"tats-u"},"datePublished":"2026-07-09T03:02:37Z","url":"https://github.com/microsoft/TypeScript-Website/issues/3607"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2565db9a-fde9-fd07-bfea-01f564a08b52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A56A:21E3E7:B13DBA:EB850D:6B00ED6C |
| html-safe-nonce | f0fffbc6c0c4cdebf6f706e7c2ccd6da4e82102d9e9ec0cefc99b85a3a06d41b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTZBOjIxRTNFNzpCMTNEQkE6RUI4NTBEOjZCMDBFRDZDIiwidmlzaXRvcl9pZCI6IjIwMDU4MTIzNjU4MDc0MDQ2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d3a3600617146925a5181684a59c4632ae635f0504822b13532a52f2260ed2fa |
| hovercard-subject-tag | issue:4842788581 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript-Website/3607/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21b662f8736b5948d3c3a95d8048a59d6acd77dc0268e717206cda740c8bb074/microsoft/TypeScript-Website/issues/3607 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21b662f8736b5948d3c3a95d8048a59d6acd77dc0268e717206cda740c8bb074/microsoft/TypeScript-Website/issues/3607 |
| og:image:alt | 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 noUncheckedSid... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tats-u |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript-Website git https://github.com/microsoft/TypeScript-Website.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 193992134 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript-Website |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193992134 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript-Website |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width