-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Uncaught ReferenceError: process is not defined #24479
Comments
Thanks for the issue! This issue has been labeled as In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly. Thank you! |
UPDATE: as per another commenter in below issue, my success with upgrading to v5 was short-lived. I began seeing process not defined again as well as some other react scripts v5 related errors (#24441) @SiegeSailor I ran into this and the following package update fixed it for me (note, you do have to quit and restart the server if it's currently running so the updated version of React Scripts & Webpack is used) |
react-script 5.0.0 fixes this issue, however you'll get other warnings from webpacks 5 "Failed to parse source map from xxxxxxxx".
Upgrading to react-script 5.0.0 would be the ideal fix, however because of the source map warnings and react-script 5.0.0 is not officially supported. The other work around for now is to add the following to your devDependencies
|
Thanks, the "react-error-overlay" module works with [email protected] - no errors, no freeze |
Thank you! I tried Thanks for |
@SiegeSailor I think we should leave this ticket open. The right fix would be to update Ionic's dependencies to react-scripts 5.0.0 and include the source code for the source maps in the ionic package. |
Indeed! Finding a workaround doesn't mean the issue has been fixed. Thank you. |
Thank you everyone for the helpful collaboration on this issue; you all are awesome ⭐ . The source map issue will be resolved with #24514 and then we can explore updating the |
Thanks @sean-perkins ! |
Hi everyone, I wanted to provide a quick update regarding this. This is a bug in react-scripts as confirmed by the CRA team: facebook/create-react-app#11773 (comment) Here is a workaround for those still on react-scripts v4: facebook/create-react-app#11773 (comment) The Ionic Team is doing the following to mitigate this issue:
I am going to keep this issue open and will close it out once a fix in react-scripts v4 has shipped. Thanks for your patience! |
Thanks for squaring this away and for providing all that info @liamdebeasi ! |
Hi everyone, The team has decided to close out this issue. Ionic now has support for React Scripts v5 which does not have this issue, and all new starter apps now ship with React Scripts v5. I recommend upgrading your apps to React Scripts v5 to resolve this issue. If you cannot upgrade to v5, please follow facebook/create-react-app#11773 for updates on a potential v4 patch. Thank you! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
The following message shows on the browser console and the application is frozen whenever I edit and save my code with hot-reloading.
Expected Behavior
Editing and saving code with hot-reloading without freezing.
Steps to Reproduce
npm run start
(react-scripts start) ornpm run serve
(ionic serve)Code Reproduction URL
No response
Ionic Info
Additional Information
The text was updated successfully, but these errors were encountered: