react-refresh-webpack-plugin
react-refresh-webpack-plugin copied to clipboard
Watch expressions on undefined cause ReferenceError
I am trying to use watch expressions in Chrome devtools on an app that is using this react refresh plugin. If the expression that I am watching returns undefined then the error page is shown with a ReferenceError.
Steps to reproduce:
cd examples/typescript-with-tscyarn installyarn start- Open http://localhost:8081/ in Chrome
- Open the devtools
- Add a new watch expression with the expression
boom
The error is clear, no? The variable was not defined so the browser throws a ReferenceError?