简体   繁体   中英

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.

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".

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).

The solution is to make sure your working directory is set to the canonical path (the same as displayed in Windows Explorer).

PowerShell:

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

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.

See this GitHub issue .


1: Can be configured .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM