Other ReactJS project no autorefresh on FreeBSD?

Thanks, It works for me:
webpack.config.js
JavaScript:
watchOptions: {
        // Required for react-refresh to work on FreeBSD.
        poll: 500,
      },

I was migrating my project from React 16 to React 18 on FreeBSD and got a lot of problems because
react-hot-loader deprecated and the recommended react-refresh didn't work on FreeBSD.
Glad that helped. Indeed it was (RHL). It took me a bit to switch to react-refresh.
 
Back
Top