今天React设置eslint的时候出了一个错误,
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.

这个错误很简单就是react-script这个库不支持太高版本的eslint我们安装会6.6.0就可以了
解决方法
npm uninstall --save eslint
npm i --save-dev eslint@6.6.0

项目成功运行
1万+

被折叠的 条评论
为什么被折叠?



