Skip to content
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

Open
Enkratia opened this issue Aug 8, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application.

Comments

@Enkratia
Copy link

Enkratia commented Aug 8, 2024

Link to the code that reproduces this issue

https://github.com/Enkratia/css-reload-show

To Reproduce

  1. npm i
  2. npm run dev
  3. comment/uncomment any css property in file: src/app/components/component/component.module.scss
  4. see full page reload

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

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home Single Language
Binaries:
  Node: 20.10.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.0
  eslint-config-next: 14.1.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.2
Next.js Config:
  output: standalone

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: ["next@14.2.5"]"

** node version: v21.7.2

@Enkratia Enkratia added the bug Issue was opened via the bug report template. label Aug 8, 2024
@github-actions github-actions bot added the create-next-app Related to our CLI tool for quickly starting a new Next.js application. label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application.
Projects
None yet
Development

No branches or pull requests

1 participant