Failed to load plugin import: 'eslint-plugin-import'
Run today in the same problem. Had upgraded ESLint 5.16 to 6.6.0 and had been using the vue-eslint-plugin 5.2.3. Had to install this packages:
npm install eslint-plugin-import --save-dev
npm install eslint-plugin-node --save-dev
npm install eslint-plugin-promise --save-dev
npm install eslint-plugin-standard --save-dev
Try this
npm install -g eslint
then
eslint --init
The issue is resolved for me after installing the following in a row:
npm install eslint-plugin-import eslint-plugin-flowtype eslint-plugin-jsx-a11y eslint-plugin-react
Have you tried installing eslint
locally, like
npm install eslint-plugin-import --save-dev
?
Edit -Solution:
Instead of installing eslint
packages one after another, the problem can be alleviated by
npm install react-scripts
as react-scripts is taking care of webpack
, babel
and eslint
and the dependencies thereof.
This may avoid conflicts, as in your case.