-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Integration between server and client hot-reloading #1012
Comments
I am using babel-watch instead of nodemon for hot-reloading with a custom server This is what i run "watch": "node_modules/.bin/babel-watch -w database -w routes -w server.js -w util.js --disable-autowatch server.js" So far its working pretty well, just make sure to add the folders you want to be watching that next isn't watching |
Hey! Curious (and optimistic) about this being closed - is there a solution for this use case in the works? |
@jesseditson closed because the issue has been inactive for more than 9 months, and we're having the #1388 issue there already 👍 |
Fair enough! Would love to see some progress over on #1388 but understand how much work it is to maintain this stuff. Happy to help where needed if the team has time for review over there! |
Projects with custom server (like my own: https://github.com/relatenow/relate), where nodemon is used to hot-reload server changes, don't fare well when changing code on both the server and the client, especially simultaneously. In that case, hot-reloading might get stuck and never recover:
The above message might lead to think that reloading is complete, but actually there's no confirmation message from nodemon, only from Next. Nodemon is stuck for some reason.
Also the messages are different when the server or the client reloads (
[nodemon] restarting due to changes...
in the former case, andWAIT Compiling...
in the latter).I don't see an obvious way to fix this, but thought would report it to draw attention to the fact that it's quite cumbersome nevertheless (need to restart server manually in these cases).
The text was updated successfully, but these errors were encountered: