Replies: 2 comments 1 reply
-
Wow! Great find to work out Have a similar situation in my code - a Like you suggested, saw they were in the This only happens in Turbopack, so clearly the issue lies with that. Staggered this hasn't been more widely reported? Maybe there's something more niche to the cause beyond the components also being in |
Beta Was this translation helpful? Give feedback.
-
I am seeing the same class of issue with Turbopack, but for me it seems not related to Setup
Symptom
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi,
I'm using Next.js to render dynamic pages composed of multiple content modules. All modules are imported and rendered conditionally through a central Modules.js file. Each module imports its own stylesheet, using the BEM naming convention (we are not using CSS Modules).
After upgrading from Next.js 15.2.x to 15.3.x, the styles for the individual modules are no longer applied. Only the global styles imported in layout.js are present.
The issue occurs specifically when the Modules.js file is imported in not-found.js. As soon as Modules.js is imported there, the module-specific styles are missing—even on regular pages.
Interestingly, if I wrap the Modules component in another component inside not-found.js and mark that wrapper with 'use client', then the styles appear again. This suggests the issue might be related to how SCSS file entry points are being handled—possibly something changed in how styles are included during SSR or static rendering.
This behavior did not occur in 15.2.x and seems to be a regression or a change in behavior in 15.3.x.
Has anyone experienced this, or is there any known change related to style handling in 15.3.x?
Thanks!
next\src\app[[...slug]]\page.js
next\src\modules\Modules.js
next\src\modules\PrimaryHero\PrimaryHero.js
next\src\app\not-found.js\not-found.js
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions