[英]Plugin "react" was conflicted between "package.json
Every time when i change on JSX.每次我在 JSX 上进行更改时。 This error throw on my terminal and project UI.
这个错误在我的终端和项目 UI 上抛出。
Plugin "react" was conflicted between
插件“反应”之间存在冲突
"package.json » eslint-config-react-app » C:\projects\end-game-project\sporte\node_modules\eslint-config-react-app\base.js"
“package.json » eslint-config-react-app » C:\projects\end-game-project\sporte\node_modules\eslint-config-react-app\base.js”
"BaseConfig » C:\Projects\end-game-project\sporte\node_modules\eslint-config-react-app\base.js".
“BaseConfig » C:\Projects\end-game-project\sporte\node_modules\eslint-config-react-app\base.js”。 Then when I do CTRL+S on package.json, It temporary fixed.
然后,当我在 package.json 上执行 CTRL+S 时,它暂时修复了。
But how can I permanently fix it?但我怎样才能永久修复它?
When you started your react app in the terminal, it looks like you entered a path using a capital 'P' in C:Projects\end-game-project, even though the actual path does not have a capital 'p' and should be C:projects\end-game-project (or vice-versa).当您在终端中启动您的反应应用程序时,看起来您在 C:Projects\end-game-project 中使用大写“P”输入了一个路径,即使实际路径没有大写“p”并且应该是C:projects\end-game-project(反之亦然)。
Note that some terminals, like the one VS offers, aren't case sensitive, and they will let you 'cd' into folders even if you misuse an upper or lowercase letter.请注意,某些终端,例如 VS 提供的终端,不区分大小写,即使您误用了大写或小写字母,它们也会让您“cd”到文件夹中。
To fix this, the solution is rather simple.要解决此问题,解决方案相当简单。 Open the command terminal where you launch your React app and use 'cd..' to navigate out of the project folder, going as far back as your C drive.
打开启动 React 应用程序的命令终端,然后使用“cd..”导航出项目文件夹,直到 C 盘。 Then, navigate back to your project folder, this time ensuring you use the correct uppercase and lowercase letters in your file path.
然后,导航回您的项目文件夹,这一次确保您在文件路径中使用正确的大写和小写字母。 Then launch your app again and the problem should be resolved.
然后再次启动您的应用程序,问题应该得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.