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

Charles Stover
1 min readDec 31, 2021

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.

--

--