简体   繁体   English

插件“react”在“package.json”之间发生冲突

[英]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.

相关问题 出现错误“插件”反应“在”package.json»“之间发生冲突 - getting error " Plugin "react" was conflicted between "package.json » " 插件“反应”在“package.json ...”和“BaseConfig ...”之间发生冲突 - Plugin "react" was conflicted between "package.json ..." and "BaseConfig ..." 插件“react”在“package.json » eslint-config-react-app 之间发生冲突 - Plugin "react" was conflicted between "package.json » eslint-config-react-app 插件“react”中的错误在“package.json » eslint-config-react-app 之间发生冲突 - ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app 部署 React 应用程序时出错,它一直在说 &lt;&lt; Plugin "react" was conflicted between "package.json » eslint-config-react-app » &gt;&gt; - Error when deploying react app and it keeps sayings << Plugin "react" was conflicted between "package.json » eslint-config-react-app » >> 插件 React 在 package.json 之间发生冲突 - Plugin React was cnonflicted between package.json 使用 nodemon 重新部署我的 React 应用程序时出错,它一直在说“插件“反应”在“package.json » eslint-config-react”-app » 之间发生冲突 - Error when redeploying my react app with nodemon it keeps sayings "Plugin "react" was conflicted between "package.json » eslint-config-react"-app » 插件“react”中的错误在 - ERROR in Plugin "react" was conflicted between ESLint:插件“反应”在两者之间发生冲突 - ESLint: Plugin "react" was conflicted between Create-react-app - 插件“react”中的错误在“.eslintrc.json”和“BaseConfig”之间发生冲突 - Create-react-app - ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM