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 | charlesstover.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Pagination Using MongoDb and React

Top 5 Technology-Related Articles You Should Read

Keep calm and race on: redux-saga case study

Coloring classic list view in SharePoint Online

Multilanguage sentiment analysis, in Node.js

Building a static website generator with React, AWS Lambda and Terraform

React Native Currency Formatting Done Native Way

What Happened When My Rich Friend Told Me to Stop Programming

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
Charles Stover

Charles Stover

Staff front end engineer | Tech lead | Architect | charlesstover.com

More from Medium

Getting started with a PureScript React project

Creating a React Toolchain from Scratch. Part1.

How to create custom hooks in React?

My ELI5 For Basic React Concepts: Lifting State Up