如何在安装我的React应用程序后修复此ESLint错误。

huangapple go评论59阅读模式
英文:

How to fix this eslint error after installing my react application

问题

[eslint] 插件 "react" 在 "package.json » eslint-config-react-app » C:\Users\Teke\Desktop\Projects\lilayi_lodge_demo\client\node_modules\eslint-config-react-app\base.js" 和 "BaseConfig » C:\Users\Teke\Desktop\Projects\lilayi_lodge_demo\Client\node_modules\eslint-config-react-app\base.js" 之间发生了冲突。

英文:

如何在安装我的React应用程序后修复此ESLint错误。

[eslint] Plugin "react" was conflicted between "package.json » eslint-config-react-app » C:\Users\Teke\Desktop\Projects\lilayi_lodge_demo\client\node_modules\eslint-config-react-app\base.js" and "BaseConfig » C:\Users\Teke\Desktop\Projects\lilayi_lodge_demo\Client\node_modules\eslint-config-react-app\base.js".

答案1

得分: 0

你在使用终端导航到项目时,使用了不一致的大小写。请使用正确的大小写使用 cd 进入 React 项目的目录。
你可以:

1- 打开你的 shell 并使用正确的大小写进入目录。

2- 如果你使用 Visual Studio Code,你可以使用 code . 命令在代码编辑器中打开当前文件夹。

英文:

you have used inconsistent casing when navigating to your project with your terminal. cd into the directory of your React project using the correct casing.
you can :

1- Open your shell and cd into the directory using the correct casing.

2 - If you use Visual Studio code, you can use the code . command to open the current folder in your code editor.

huangapple
  • 本文由 发表于 2023年5月21日 18:11:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76299352.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定