学无先后,达者为师

网站首页 编程语言 正文

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

作者:Krlin_ 更新时间: 2022-07-02 编程语言

报错提示信息

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

解决办法

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

npm i --save-exact react-scripts@4.0.3

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

原文链接:https://blog.csdn.net/weixin_46353030/article/details/125526311

栏目分类
最近更新