欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

There might be a problem with the project dependency tree. It is likely not a bug in Create React Ap

程序员文章站 2022-03-11 22:41:50
错误信息:There might be a problem with the project dependency tree.It is likely not a bug in Create React App, but something you need to fix locally.项目依赖关系树可能有问题。这可能不是Create React应用中的bug,而是需要在本地修复的问题。解决方案一:直接在工程文件夹中新建一个 .env 目标文件,之后把 SKIP_PREFLIGH.....

错误信息:There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

项目依赖关系树可能有问题。

这可能不是Create React应用中的bug,而是需要在本地修复的问题。

 

解决方案一:

直接在工程文件夹中新建一个  .env 目标文件,之后把 SKIP_PREFLIGHT_CHECK=true 这句话粘贴到 .env 文件中,这样就可以解决这个错误There might be a problem with the project dependency tree. It is likely not a bug in Create React Ap

There might be a problem with the project dependency tree. It is likely not a bug in Create React Ap

注意:这个 .env 文件夹要和src文件夹是平级,否则不生效。

 

解决方案二:

这个解决方案是我从网上找到的:原地址

这个方法就比较简单,直接在终端输入命令  npm run eject   就可以了

There might be a problem with the project dependency tree. It is likely not a bug in Create React Ap

等这行代码跑完之后 npm start 就可以跑起来项目了。

本文地址:https://blog.csdn.net/ProgrammingWhite/article/details/108125516