starter-kit-tutorial icon indicating copy to clipboard operation
starter-kit-tutorial copied to clipboard

Cannot find module 'eslint'

Open abcoathup opened this issue 6 years ago • 1 comments

When running the client npm start in the client directory the following warnings are shown:

Compiled with warnings.

./src/components/Footer/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/serviceWorker.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/utils/getWeb3.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/components/Header/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/App.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/components/Hero/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/components/Web3Info/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/components/Counter/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/components/Wallet/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

./src/components/Instructions/index.js
Failed to load plugin 'import' declared in 'BaseConfig » /c/Users/andre/Documents/projects/forum/myproject/client/node_modules/eslint-config-react-app/index.js': Cannot find module 'eslint'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

These warnings don't appear when eslint installed on the client. npm i eslint --save-dev

abcoathup avatar Dec 29 '19 20:12 abcoathup

Did you find a solution to this?

Edit: I solved it by doing a clean npm i on all my dependencies

19hours avatar May 24 '20 04:05 19hours