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 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 就可以跑起来项目了。