Is this the bug of react-error-overlay?
Created by: Emiya0306
Describe 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(R) Core(TM) 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.