Resolving Create React App’s “Uncaught ReferenceError: process is not defined”

A recent change to Create React App, or more specifically react-scripts, has caused hot reloading to throw an error: Uncaught ReferenceError: process is not defined. This is due to its dependency, react-error-overlay, being referenced as ^6.0.9 while react-error-overlay’s latest patch version 6.0.10 is a breaking change. As a result, your installation likely uses 6.0.10 when it needs 6.0.9. To fix this, you unfortunately need to Frankenstein your yarn.lock file.



Staff front end engineer | Tech lead | Architect |

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store