简体   繁体   English

插件“反应”在“package.json ...”和“BaseConfig ...”之间发生冲突

[英]Plugin "react" was conflicted between "package.json ..." and "BaseConfig ..."

在 Microsoft edge 上运行的 React 应用程序

I open Terminal, on my react folder, i start react app with npm start , but the error always come on the browser.我打开终端,在我的反应文件夹中,我开始使用npm start反应应用程序,但错误总是出现在浏览器上。

Plugin "react" was conflicted between "package.json » eslint-config-react-app » D:\os\zenom\zenom-react\node_modules\eslint-config-react-app\base.js" and "BaseConfig » D:\OS\Zenom\zenom-react\node_modules\eslint-config-react-app\base.js".插件“react”在“package.json » eslint-config-react-app » D:\os\zenom\zenom-react\node_modules\eslint-config-react-app\base.js”和“BaseConfig » D”之间发生冲突:\OS\Zenom\zenom-react\node_modules\eslint-config-react-app\base.js”。

You are running your project from an incorrect, non-canonically capitalized working directory path.您正在从错误的、非规范大写的工作目录路径运行您的项目。

The canonical path is D:\OS\Zenom\zenom-react but your working directory is D:\os\zenom\zenom-react (note the lower-case letters).规范路径是D:\OS\Zenom\zenom-react但您的工作目录是D:\os\zenom\zenom-react (注意小写字母)。

The solution is to make sure your working directory is set to the canonical path (the same as displayed in Windows Explorer).解决方案是确保您的工作目录设置为规范路径(与 Windows Explorer 中显示的相同)。

PowerShell: PowerShell:

PS D:\os\zenom\zenom-react> cd D:\OS\Zenom\zenom-react
PS D:\OS\Zenom\zenom-react> npm start

bash: bash:

user@machine MINGW64 /d/os/zenom/zenom-react
$ cd /d/OS/Zenom/zenom-react

user@machine MINGW64 /d/OS/Zenom/zenom-react
$ npm start

Accessing files will still work using a different capitalization since Windows filesystems are usually 1 case-insensitive, but the module loader doesn't see paths as equivalent if they have different capitalization (and some OS path manipulation methods will cause the canonical path to be returned), hence the error.访问文件仍然可以使用不同的大小写,因为Windows文件系统通常不区分大小写,但是如果路径具有不同的大小写,模块加载器不会将路径视为等同的(并且一些操作系统路径操作方法将导致返回规范路径),因此错误。

See this GitHub issue .请参阅此 GitHub 问题


1: Can be configured . 1:配置

暂无
暂无

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

相关问题 使用 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 Heroku 没有为 react package.json 获取 PORT - Heroku is not getting PORT for react package.json package.json 中的自定义反应脚本无法识别 - Custom react script in package.json is not recognised 如何使用React(typescript)从package.json获取插件信息,例如有关插件和许可证类型的信息? - How get plugin information from package.json, like about the plugin and license type etc using React (typescript)? 如何从 webpack 插件中读取 package.json - How to read package.json from webpack plugin 无法加载在“package.json”中声明的插件“vue” - Failed to load plugin 'vue' declared in 'package.json' 无法加载在“package.json » eslint-config-react-app/jest”中声明的插件“jest”:无法读取未定义的属性(读取“meta”) - Failed to load plugin 'jest' declared in 'package.json » eslint-config-react-app/jest': Cannot read properties of undefined (reading 'meta') 问题是package.json吗? - Problem is package.json?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM