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

Watch expressions on undefined cause ReferenceError

Open steinybot opened this issue 3 years ago • 1 comments

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:

  1. cd examples/typescript-with-tsc
  2. yarn install
  3. yarn start
  4. Open http://localhost:8081/ in Chrome
  5. Open the devtools
  6. Add a new watch expression with the expression boom
Screen Shot 2022-08-30 at 12 18 03 PM

steinybot avatar Aug 30 '22 00:08 steinybot

The error is clear, no? The variable was not defined so the browser throws a ReferenceError?

pmmmwh avatar Sep 26 '22 04:09 pmmmwh