react-refresh-webpack-plugin
react-refresh-webpack-plugin copied to clipboard
Getting full page reload with error: Aborted because ... is not accepted
I'm trying to setup React Refresh but after following the documentation and trying it out I get this kind of error:
[HMR] Cannot apply update. Need to do a full reload! [HMR] Error: Aborted because ./src/Header.tsx is not accepted
I went through the troubleshooting guide but I can't find the root cause.
Tried adding module.hot.accept() here and there with no luck, I got rid of the error and the state is not lost but the React component is not reloaded.
Here is the repository:
- https://github.com/oncet/react-from-scratch/tree/with-babel
Make sure to checkout to the with-babel branch.
+1