Open 6220119 opened 2 years ago
This is probably a different variant of these issues:
I am also having this issue. This bug is reproducible through the router but if I land directly on my page it works as intended.
We are also having this issue. This causes some weird style errors in our project 😞
also having this issue. pretty nasty
I have the same issue in next@13.5.6 even without dynamic imports. Seriously this problem has been going on for so long and it still hasn't been fixed?
Verify canary release
Provide environment information
next info
What browser are you using? (if relevant)
Not relevant
How are you deploying your application? (if relevant)
next export (pages are statically generated, and deployed on a host, i.e. Github Pages)
Describe the Bug
The CSS Module resolved in production mode does not match with the development's.
Expected Behavior
At the minimum, the same output should be the same in development mode, so that we are not caught by surprise.
Link to reproduction
https://github.com/6220119/nextjs-css-module-dynamic-import-bug
To Reproduce
Steps to reproduce
The Reproduction site is live at: https://6220119.github.io/nextjs-css-module-dynamic-import-bug/
at the time of writing, this issue is reproducible with
next@canary (12.2.6-canary.5)
/
route).[FAIL]
, Expect that the "Blue" and "Red" buttons are displayed correctly.Blue and Red buttons become "grey", due to CSS overriding from a newly added
<style>
element,under the marker
<noscript data-n-css=""></noscript>
Video capture
https://user-images.githubusercontent.com/1059583/187365088-afe7065c-d6a9-4efa-a1d0-fe82c17b7029.mp4