Open samhh opened 8 years ago
Possibly related to Nodemon?
Probably, we need to add the src to the ignore paths in nodemon.
Did this fix it? Noticed it in a project:
nodemon app/index --ignore src/
@pvalentim
That appears to make it rarer, but it still happens (easy to replicate if you update a client and server JS quickly one after another). I'll add it for now but a better solution is necessary.
I was able to successfully separate the HMR code from the server into its own micro-server (similar to: https://gist.github.com/ezekielchentnik/ed0cabb09bf29e5b4a7a461a11b1c63d), however that still had problems such as the client losing connection to the HMR occasionally. It also increased code complexity.
Perhaps worth trying?: https://github.com/60frames/webpack-hot-server-middleware
During dev mode, rarely Webpack will get stuck and keep producing bundles ad infinitum. Unsure as to why thus far.