Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin "react" was conflicted between "package.json ..." and "BaseConfig ..."

React app running on on Microsoft edge

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

like image 627
Neo Joram Avatar asked Feb 03 '26 23:02

Neo Joram


1 Answers

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

like image 199
CherryDT Avatar answered Feb 05 '26 12:02

CherryDT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!