[英]Plugin "react" was conflicted between "package.json ..." and "BaseConfig ..."
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.