每次create-react-app完成以后启动之前我还去创建一个.env

来源:2-2 【环境搭建】开始我们的第一个React项目

慕码人3286404

2021-03-30

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.

写回答

1回答

阿莱克斯刘

2021-05-18

请打开你的 package.json,替换 "react-scripts": "xxxxxxx" 为 "react-scripts": "1.1.4", 然后npm install,最后 npm start。问题应该就能解决。

我找到github有与你同样的问题,可以参考一下:

https://github.com/facebook/create-react-app/issues/5972

//img.mukewang.com/szimg/60a294c409ff63a427701054.jpg

//img.mukewang.com/szimg/60a294be096ace4619020562.jpg



0
0

React18 系统精讲 结合TS打造旅游电商平台

React18 精讲 + 结合 TS 实战 + 热门业务开发,获取必备技能

1993 学习 · 1015 问题

查看课程