Open kodayashi opened 6 years ago
Any traction on this. I'm not finding any answers anywhere
I'm seeing the same thing, were you able to resolve this?
I'm on webpack@4.12.0
and think it's probably because module.hot.accept()
accepts an error-handling callback when no dependencies are specified (according to their docs: https://webpack.js.org/api/hot-module-replacement/#accept-self-). I'm not sure, but maybe this is a behavioral change from webpack v3?
I was able to work past my issue. For anyone else that happens to find this thread, here's the fix:
module.hot.accept('./app/reducers', () => {
const nextAppReducer = require('./app/reducers').default;
store.replaceReducer(
persistReducer(persistConfig, nextAppReducer)
);
});
Redux-persist is working great, but I get the following error when trying to follow the HMR instructions:
Index.js:
Here is
./app/reducers/index.js
:Any idea what might be the issue here? I can't seem to find anyone else having this issue when searching older (closed) issues.