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 randomly fails to update #13629

Closed
Luffyyy opened this issue Apr 2, 2022 · 6 comments
Closed

HMR randomly fails to update #13629

Luffyyy opened this issue Apr 2, 2022 · 6 comments

Comments

@Luffyyy
Copy link

Luffyyy commented Apr 2, 2022

Environment


  • Operating System: Windows_NT
  • Node Version: v16.11.1
  • Nuxt Version: 3.0.0-27480376.fdd38f9
  • Package Manager: npm@8.0.0
  • Builder: vite
  • User Config: typescript
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Happens on a clean install of nuxt via npx nuxi init nuxt3-app && npm install. The way I get it to trigger is just editing the app.vue file, like adding a number or something and sometimes it will ignore the change and the page will not reload in the browser.

Describe the bug

HMR mostly works, however sometimes fails to update. I could only confirm this on Windows, could not make it happen in the browser with a sandbox (StackBlitz, I think CodeSandbox doesn't have it working at all)

Additional context

No errors are given. Terminal just says "√ Vite server built in Xms", console in browser has no errors either.

Logs

No response

@anburocky3
Copy link

I too face this problem. I mostly see this with Tailwind 3.

@zSoulweaver
Copy link

+1 for also having the same problem. Occurs with ordinary style tags for me, specifically with sass, but I'm pretty sure it occurs with vanilla too.

@frbuceta
Copy link
Contributor

frbuceta commented Apr 4, 2022

I also see this error a lot (it is solved by constantly restarting)

 ERROR  [proxy] socket hang up                                                                                                                                                                                               12:39:27

  at connResetException (node:internal/errors:691:14)
  at Socket.socketOnEnd (node:_http_client:471:23)
  at Socket.emit (node:events:402:35)
  at Socket.emit (node:domain:475:12)
  at endReadableNT (node:internal/streams/readable:1343:12)
  at processTicksAndRejections (node:internal/process/task_queues:83:21)

@danielroe
Copy link
Member

Would you let me know if this solution solves things for you?

@Luffyyy
Copy link
Author

Luffyyy commented Apr 7, 2022

Would you let me know if this solution solves things for you?

Works 👍

@danielroe
Copy link
Member

Great. Then let's close this issue in favour of #12822.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants