next/dynamic Resulting in style loss #47655
Labels
bug
Issue was opened via the bug report template.
Lazy Loading
Related to Next.js Lazy Loading (e.g., `next/dynamic` or `React.lazy`).
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Dynamic imports (next/dynamic)
Link to the code that reproduces this issue
https://github.com/hyj111/next-dynamic-css-issue
To Reproduce
If a css module in a lazy load component is referenced in advance, the packaged code will cause the lazy load component style to be lost, but it is normal under dev
Describe the Bug
You can use the code of this warehouse to reproduce
https://github.com/hyj111/next-dynamic-css-issue
Expected Behavior
The style of the lazy loading component can be loaded normally
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next start
The text was updated successfully, but these errors were encountered: