-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5 Regression react-error-overlay build - Uncaught ReferenceError: process is not defined #11771
Comments
Is it fixed if updating to react-scripts v5? |
Unfortunately I am facing a different issue with the websocket connection not using wss but ws even though I use https, thus the browser refusing to connect the websocket, in v5... So I cant test v5 at this time. |
Is installing old versions of cra, e.g. 4.0.3 via package.json and npm install, installing webpack 5 now too? I read that process is no longer defined with webpack 5. |
I see the same error with these dependencies. node: 16.10.0 Hot reload continues to work, but the page becomes unresponsive. Can't click or do anything unless you do a manual refresh.
|
Does 'rm -rf node_modules' and then npm/yarn install resolve the issue? |
I had similar error after doing The dependencies: node: 14.17.1
|
same here... Hot reload continues to work, but the page becomes unresponsive. Can't click or do anything unless you do a manual refresh. |
This also happened for me sometimes. Whenever that happens and I inspect the page or any elements, everything is in an iframe containing javascript. |
actually yes exactly same is happening with me im not sure what this issue is cause by if any one know what's causing this help out! im using react js
|
yes and when you delete that iframe from elements/DOM then it all works fine |
I also had the same issue. It adds iframe overlay that's why I was not able to click on page. Updating to react-scripts to 5.0.0 solved my issue. |
icame here for same reason ... |
i did that but now its giving me new error while doing npm start TypeError: match.loader.options.plugins is not a function |
In my case I have not created an iframe, but one of the dependencies has created one. Not much I can do about that. |
where you also using tailwind? |
No the dependency that has an iframe I believe is |
but i dont have that dependency still im getting iframe
|
Hmm, I wonder if |
No i am not using tailwind. |
you guys using eslint? |
As #11773 reports, the problem seems to be related to |
|
I tried too updating react-scripts to 5.0.0 but as im using craco to create my builds and to compile so idk im getting an error you can check it here any help would be appreciated |
but if you just delete that iframe from inspect element in chrome that doesn't appears back again until you do a hot reload while if you make changes in code and it re-renders at that time that iframe doesn't appears |
I've posted what I believe should have this bug, however it's blocked by another more serious websocket issue I'm seeing in |
CRA v5 now use the error overlay in webpack Cc @iansu |
my problem is from this https://ionicframework.com/docs/react/quickstart igot error for 14 hours -_-
after 14 hours i try this maybe help other people who stuck on ionic Starter Templates |
Hey guys, i just changed my "react-scripts" and "react" deps versions to |
yepp getting exact the same response when I had to downgrade react-scripts from 5.0.0 to 4.0.3 to connect Metamask with React/TS(to avoid polyfill issue caused). for example hot reload with sass is working and showing result in browser, but page becomes unresponsive. |
For those still having issues with this: If using Webpack, run
See https://github.com/mrsteele/dotenv-webpack/blob/master/README.md |
This updates react-scripts in the genreated starter app from create-app in order to resolve the react-error-overlay issue that was preventing hot reloading from working. References: - facebook/create-react-app#11771 - https://stackoverflow.com/a/70452191/656011
This updates react-scripts in the various starter apps in order to resolve an issue with hot reloading while working locally. References: - facebook/create-react-app#11771 - https://stackoverflow.com/a/70452191/656011
This updates react-scripts in the various starter apps in order to resolve an issue with hot reloading while working locally. References: - facebook/create-react-app#11771 - https://stackoverflow.com/a/70452191/656011
This updates react-scripts in the various starter apps in order to resolve an issue with hot reloading while working locally. These changes include: - update react-scripts to v5; upgrade react to v18 - update yarn.lock after version changes - increment package versions in changeset References: - facebook/create-react-app#11771 - https://stackoverflow.com/a/70452191/656011
this worked perfect for me 👍 |
refer to github issue: facebook/create-react-app#11771
refer to github issue: facebook/create-react-app#11771
refer to github issue: facebook/create-react-app#11771
Worked perfectly with "react-scripts": "4.0.3", Thanks 🚀 |
In my case, the app works just fine in local but when i deploy the app in Azure (app service) the error keeps showing in the console, leavin the app unresponsive. If anyone knows how to fix that problem when in production, i'd appreciate the help.. Thanks |
|
refer to github issue: facebook/create-react-app#11771
I passbyed this problem by upgrading some of the main dependencies. |
For developers that can not fix it, there is a simple solution that can help you get rid o freezing situation
|
## Problem CRA의 react-scripts 에서 발생하는 이슈로, react-error-overlay 의 내부 로직 변경 후 발생한 버그로 인함 ## Solve 해당 이슈가 해결된 react-scripts 최신 버전으로 업그레이드 진행 참고: [link](facebook/create-react-app#11771 (comment))
tell me one solution please |
npm i -D react-error-overlay@6.0.9 it works for me |
Worked for me as well. Thanks @faridsh69 |
I use following command to start: npm run start
Then, whenever I save a file, I get the following "Uncaught ReferenceError: process is not defined" error in the browser console.
react-scripts 4.0.3
npm 6.14.8
node v14.18.1
FreeBSD 12.2-RELEASE-p4 GENERIC amd64
The project compiles just fine, but the hot reloading seems to be erroring.
I have no problem with react-scripts 3
Isnt process a node environment variable? How does it end up in the browser?
The text was updated successfully, but these errors were encountered: