Hot reloading of the dev server makes the app crash
To reproduce:
- Start the server with
pnpm start
- Make a change in a source file
- Save the file to trigger the hot reloading of the app
- The app becomes frozen and
Uncaught ReferenceError: process is not defined
appears in the console
A quick search shows that updating react-scripts
or react-error-overlay
should fix the issue: https://stackoverflow.com/questions/70368760/react-uncaught-referenceerror-process-is-not-defined