Hot reloading of linked modules; how to reload server side? #16054
Unanswered
ale-grosselle
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working with next and a linked module, the hot reloading doesn't work on the server but only on the client.
When you have a linked module inside the node_modules folder the module is only replaced on the client but not on the server. This means that you have to restart the whole next application in order to render the updated module on the server.
When the module is a React.Component and the output change this even results in inconsistent rendering between server and client shown in a error message in the console.
Beta Was this translation helpful? Give feedback.
All reactions