Failed to compile Plugin "react" was conflicted between "package.json »…
- User
Failed to compile Plugin "react" was conflicted between "package.json » eslint-config-react-app » /home/chunfung/Github/inats/inats-ui-4.0/node_modules/eslint-config-react-app/base.js" and "BaseConfig » /usr/lib/node_modules/react-scripts/node_modules/eslint-config-react-app/base.js". This error occurred during the build time and cannot be dismissed.
- Assistant
It seems you have a conflict between two different versions or instances of the "react" plugin in your ESLint configuration. This might be due to having different versions of
eslint-config-react-appin your project and in your global installation ofreact-scripts. To resolve the conflict, you can try the following steps:- Remove global
react-scripts(if you have it installed):
codenpm uninstall -g react-scripts- Remove
node_modulesdirectory from your project:
bashrm -rf node_modules- Clear the npm cache:
cssnpm cache clean --force- Install the latest version of
react-scriptsin your project as a development dependency:
cssnpm install --save-dev react-scripts- Install the rest of the dependencies for your project:
- Remove global