When I use both global CSS and CSS modules and I import some JS libraries, there is a flash of unstyled content when I view the page in the dev mode.
The FOUC disappears when I don't import the CSS module file OR when I don't import any JS libraries...
It is only happening in the dev mode which makes it not a huge concern but it is still a bit stressful 馃槃
Complete reproduction on https://github.com/tomdohnal/nextjs-fouc
You have to either do a hard refresh or open the page in a tab to experience the FOUC.
There should be no FOUC.
Probably related to #12448 and #10268
Also related
https://github.com/vercel/next.js/issues/13058
Never heard of the Acronym "FOUC" before :)
This should be fixed in next@^9.4.5-canary.15! Please upgrade and let us know.
Works like charm!
Most helpful comment
This should be fixed in
next@^9.4.5-canary.15! Please upgrade and let us know.