-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Closed
[Turbopack] Styles from SCSS module not loading when not-found.tsx is present (Turbopack only)#82497
Bug
Copy link
Labels
CSSRelated to CSS.Related to CSS.TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.locked
Description
Link to the code that reproduces this issue
https://github.com/GlebKodrik/Next-js-turbopack
To Reproduce
- Use Next.js with Turbopack (next dev --turbo)
- Have both PageLayout.module.scss and not-found.tsx in the project
- Styles from the SCSS module fail to load (class PageLayout-module-scss)


Current vs. Expected behavior
- No styles applied when not-found.tsx exists
- Removing not-found.tsx immediately fixes the styling


Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T8132
Available memory (MB): 24576
Available CPU cores: 10
Binaries:
Node: 20.14.0
npm: 10.7.0
Relevant Packages:
next: 15.4.6
eslint-config-next: N/A
react: 19.1.0
react-dom: 19.1.0
typescript: 5.8.3
Next.js Config:
output: standalone
Which area(s) are affected? (Select all that apply)
CSS
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
lawrencelogoh, geirlandro, organdonor47, GlebKodrik and VladPorvin
Metadata
Metadata
Assignees
Labels
CSSRelated to CSS.Related to CSS.TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.locked