-
Notifications
You must be signed in to change notification settings - Fork 27.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HMR doesn't work in server component with <Link> or/and <Image> when css.module is imported. #68686
Comments
@Enkratia I can confirm this is still an issue. It looks like this isn't an issue when you use Turbopack ( |
@samcx Thank you for response. Maybe, but in real world project i am getting too much errors when i use |
@Enkratia which version of Next.js are you using? |
@samcx "next": "^14.2.4". |
@Enkratia Are you able to upgrade to the latest (canary) and/or React 19? But even with 14.2.4, all the dev tests were passing in |
@samcx i will write some of the errors here (in 12-24 hours).
|
@samcx i'm sorry for delay. First two errors:
** Yes, minimumCacheTTL is not needed in dev mode, so i can just create 2 different
** New repro: https://github.com/Enkratia/css-reload-show-2
|
@Enkratia Good finds! Is it possible to also submit a new 🐛 via the bug report so we I can share this with the Turbopack team? |
@samcx yes, i will try to make new report in 3-24 hours. |
@samcx thank you, solution is to use turbopack, no more errors right now. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/Enkratia/css-reload-show
To Reproduce
Current vs. Expected behavior
currently - HMR doesn't work with scss module when server compoennt contains or components
expected bahaviour = opposed behaviour
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
**This problem persist more than one year.
**One of the opened dicussions: #57046
**Actually my Operating System is Linux MInt 22 Cinnamon Edition x64, but when i use: "npx --no-install next info", - i am getting an error: "npm ERR! npx canceled due to missing packages and no YES option: ["[email protected]"]"
** node version: v21.7.2
The text was updated successfully, but these errors were encountered: