eggjs / egg

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
https://eggjs.org
MIT License
18.91k stars 1.82k forks source link

HMR not working on wsl2. #4835

Open mu-yu opened 2 years ago

mu-yu commented 2 years ago

What happens?

HMR not working on wsl2. Does egg-bin has workaround like 'poll' for webpack?

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue. Use npm init egg --type=simple bug then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:

  1. run any egg project on wsl2
  2. make some change, hmr not working.

Expected behavior

  1. hmr working.

Context

atian25 commented 2 years ago

try https://github.com/eggjs/egg-watcher-chokidar maybe help