Next.js Discord

Discord Forum

Upgrading to typescript 6

Unanswered
Standard Chinchilla posted this in #help-forum
Open in Discord
Standard ChinchillaOP
Does nextjs support typescript 6 yet? I just upgraded and now I'm getting Cannot find module or type declarations for side-effect import of './globals.css'.ts(2882)
if anyone sucessfully upgraded lmk if not I'll stick with ts 5

10 Replies

Northeast Congo Lion
@Standard Chinchilla are you on the latest version of next?
i think i had this issue on 16.1 or 16.2 something
defo not 2 or more of latest minor releases
Standard ChinchillaOP
the latest version of next uses typescript 5
I want to see if it's possible to upgrade to typescript 6
we're using it in prod
Standard ChinchillaOP
how did you deal with the global.css issue?
@Standard Chinchilla how did you deal with the global.css issue?
Northeast Congo Lion
.d.ts file at first
but then after 1-3 minor version upgrades of nextjs the isuee were gone