react-refresh-webpack-plugin
react-refresh-webpack-plugin copied to clipboard
Errors do not show up in browser console.
Description
When I manually create a SyntaxError, the errors show up normally in terminal, but not in browser console.
terminal
browser console
Since there is a SyntaxError in the updated module, no hot updates are applied to reflect build errors on the page. I'm wondering this is an intended behavior or a bug.
Configuration
I use express with webpack-dev-middleware and webpack-hot-middlewareas backend, and react-refresh and react-refresh-webpack-plugin are used to implement hmr in react. Below is a MRE.
react-demo-with-hmr-enabled.zip
other
react-hot-loader will show errors in browser console, which I think is correct.