Is this the bug of react-error-overlay?
See original GitHub issueDescribe the bug
When I change the code and emit the hot-reload, there is iframe cover the whole page and report Uncaught ReferenceError: process is not defined
.
Did you try recovering your dependencies?
Yes. It wasn’t happened before I recover my dependencies. After I recover my dependencies(remove node_module / package-lock.json and reinstall the dependencies), the problem has been there.
Which terms did you search for in User Guide?
Uncaught ReferenceError: process is not defined
hot-reload
webpackHotDevClient
"win32"===process.platform
Environment
Environment Info:
current version of create-react-app: 4.0.3 running from /Users/xxx/.config/yarn/global/node_modules/create-react-app
System: OS: macOS Mojave 10.14.3 CPU: (8) x64 Intel® Core™ i7-4870HQ CPU @ 2.50GHz Binaries: Node: 11.6.0 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 6.5.0 - /usr/local/bin/npm Browsers: Chrome: 96.0.4664.110 Edge: Not Found Firefox: 94.0.2 Safari: 12.0.3 npmPackages: react: 16.12.0 => 16.12.0 react-dom: 16.12.0 => 16.12.0 react-scripts: ^4.0.3 => 4.0.3 npmGlobalPackages: create-react-app: Not Found
(paste the output of the command here.)
Steps to reproduce
- Reinstall the node_modules.
npm start
- Change some code(maybe less) and error has been there.
Expected behavior
Console will not report the Uncaught ReferenceError: process is not defined
and there is no iframe cover the page.
Actual behavior
Console reports the Uncaught ReferenceError: process is not defined
and there is the iframe cover the page.
Reproducible demo
I will try to reproduce the demo later when I’m free, report the problem at first.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:166
- Comments:86 (2 by maintainers)
Top GitHub Comments
Sorry, the “workaround” still blocked the screen, though the errow was muted. What REALLY helped was putting a fixed version of
react-error-overlay
into devDependencies like:2 steps to resolve: