Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Cannot find module 'eslint' #36

Open
abcoathup opened this issue Dec 29, 2019 · 1 comment
Open

Cannot find module 'eslint' #36

abcoathup opened this issue Dec 29, 2019 · 1 comment

Comments

@abcoathup
Copy link
Contributor

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

@19hours
Copy link

19hours commented May 24, 2020

Did you find a solution to this?

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants