We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b0b20d commit 2b1942cCopy full SHA for 2b1942c
1 file changed
src/client.js
@@ -111,7 +111,7 @@ initSocket();
111
if (module.hot) {
112
module.hot.accept('./routes', () => {
113
const nextRoutes = require('./routes');
114
- hydrate(nextRoutes).catch(err => {
+ hydrate(nextRoutes.__esModule ? nextRoutes.default : nextRoutes).catch(err => {
115
console.error('Error on routes reload:', err);
116
});
117
0 commit comments