You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript 6 compatibility: import '@payloadcms/next/css' fails with TS2882 #16346
TypeScript 6 enables noUncheckedSideEffectImports by default (announcement). This causes all three import '@payloadcms/next/css' statements generated by create-payload-app to fail with TS2882.
Type error: Cannot find module or type declarations for side-effect import of '@payloadcms/next/css'.
Reacted by Anders Semb Hermansen, Aapo Laakkio, Samuel Poulin, Nicklas, Timothy Choi, Sainenco Luchian, sect, Arpad Gabor, Cody Swartz, Hristiyan Dodov and 1 more
Activity
bastienrobert commentedon Apr 30, 2026
A workaround is to add a
payload-css.d.tsinsrc:fix: add type declarations for css export (TypeScript 6 compat) (#16348)
github-actions commentedon Jun 9, 2026
🚀 This is included in version v3.85.1