react-complete-guide-code
react-complete-guide-code copied to clipboard
06 upgraded react-scripts to v5
I'm using WSL2 to follow the course, and there was an issue with this example project: auto-reload didn't work. It was throwing this error every time I updated a file and stopped responding:
VM256:2 Uncaught ReferenceError: process is not defined
at 4043 (<anonymous>:2:13168)
at r (<anonymous>:2:306599)
at 8048 (<anonymous>:2:9496)
at r (<anonymous>:2:306599)
at 8641 (<anonymous>:2:1379)
at r (<anonymous>:2:306599)
at <anonymous>:2:315627
at <anonymous>:2:324225
at <anonymous>:2:324229
at e.onload (index.js:1:1)
I solved it by upgrading react-scripts to v5.0.1 😄