There might be a problem with the project dependency tree. It is likely not a

今天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.
There might be a problem with the project dependency tree. It is likely not a_第1张图片
这个错误很简单就是react-script这个库不支持太高版本的eslint我们安装会6.6.0就可以了
解决方法

npm uninstall --save eslint
npm i --save-dev [email protected]

There might be a problem with the project dependency tree. It is likely not a_第2张图片
项目成功运行

你可能感兴趣的:(Bug,react,eslint)