简体   繁体   English

插件 React 在 package.json 之间发生冲突

[英]Plugin React was cnonflicted between package.json

Any project I create using我使用创建的任何项目

npx create-react-app

When compiling the project, the same message always appears:编译项目时,总是出现同样的信息:

Plugin react'' was conflicted between package.json eslint-config-react-app and BaseConfig

I've tried deleting and reinstalling eslint, but to no avail.我试过删除并重新安装 eslint,但无济于事。

The only alternative so far was to Ctrl + S all the time on the package.json file to compile it again到目前为止,唯一的选择是一直在package.json文件上按 Ctrl + S 再次编译它

I had the same problem and the cause of the problem for me was that when I cd'ed into my project's directory, I wrote the folder names in lower case, while the actual folders were named in sentence case.我有同样的问题,对我来说问题的原因是当我进入我的项目目录时,我用小写字母写了文件夹名称,而实际文件夹是以句子命名的。

So make sure that the path you cd into from the terminal has the same exact capitalization as the real path.因此,请确保您从终端 cd 进入的路径与真实路径具有完全相同的大小写。 Doing that fixed the problem for me.这样做为我解决了问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 插件“react”在“package.json”之间发生冲突 - Plugin "react" was conflicted between "package.json 出现错误“插件”反应“在”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 之间发生冲突 - ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app 插件“react”在“package.json » eslint-config-react-app 之间发生冲突 - 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 » >> 无法加载在“package.json » eslint-config-react-app”中声明的插件“import”:找不到模块“typescript/package.json” - Failed to load plugin 'import' declared in 'package.json » eslint-config-react-app': Cannot find module 'typescript/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 » 无法加载在“package.json » eslint-config-react-app »”中声明的插件“react”:输入意外结束 - Failed to load plugin 'react' declared in 'package.json » eslint-config-react-app » ': Unexpected end of input Heroku 没有为 react package.json 获取 PORT - Heroku is not getting PORT for react package.json
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM