react-refresh-webpack-plugin icon indicating copy to clipboard operation
react-refresh-webpack-plugin copied to clipboard

Getting full page reload with error: Aborted because ... is not accepted

Open runoncedev opened this issue 3 years ago • 1 comments

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.

runoncedev avatar Jul 15 '22 20:07 runoncedev

+1

vsinghipcium avatar Aug 19 '22 22:08 vsinghipcium