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? #508

Closed
1 of 3 tasks
doem97 opened this issue Apr 5, 2023 · 5 comments
Closed
1 of 3 tasks

HMR doesn't work? #508

doem97 opened this issue Apr 5, 2023 · 5 comments
Labels
question Further information is requested

Comments

@doem97
Copy link

doem97 commented Apr 5, 2023

Describe the bug
The HMR is not working properly when editing files.

To Reproduce
After exec yarn dev the HMR doesn't work properly. Especially, when editing files under /app/components/* the local website won't refresh or recompile.

Expected behavior
The project re-compile automatically (update only on modified codes) and refresh website lead to new change.

** Deployment

  • Docker
  • Vercel
  • Server

Desktop (please complete the following information):

  • OS: WSL2
  • Browser: Edge

Additional Logs
When I edit package.json or tsconfig.js, the re-compiling of first-level will happen. However, compiling /page won't happen.

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 6, 2023

I cannot reproduce the issue. I have been developing on Windows and have never encountered this problem before.

@Yidadaa Yidadaa added the question Further information is requested label Apr 6, 2023
@Yidadaa Yidadaa closed this as completed Apr 6, 2023
@doem97
Copy link
Author

doem97 commented Apr 7, 2023

I cannot reproduce the issue. I have been developing on Windows and have never encountered this problem before.

Received with thanks, bro. Let me try to make a clean build. Maybe due to WSL local development problem.

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 12, 2023

It seems that it is a WSL2 bug: microsoft/WSL#4417

I just switched to WSL 2 and also encountered this issue.

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 12, 2023

Fixed by microsoft/WSL#4417 (comment)

@doem97
Copy link
Author

doem97 commented Apr 13, 2023

Fixed by microsoft/WSL#4417 (comment)

Thanks, after tons of trying I think WSL is not a proper development env. Means, what we see is just part of the problems. I don't want to encounter such things anymore so turned to MacOS now. Things much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants