运行react项目时出现Uncaught ReferenceError: process is not defined错误提示

报错提示信息

在这里插入图片描述
在这里插入图片描述

解决办法

GitHub上面给出的解决方案是将react-error-overlay版本固定在6.0.9,但是我的项目里面没有用到react-error-overlay 和react-scripts,最后在项目下安装react- [email protected]后重启项目解决的,

npm i --save-exact [email protected]

不行的话试一下这篇文章的完整步骤。
https://blog.csdn.net/ligaoming_123/article/details/122995549

猜你喜欢

转载自blog.csdn.net/weixin_46353030/article/details/125526311