starter-kit-tutorial
starter-kit-tutorial copied to clipboard
Cannot find module 'eslint'
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
Did you find a solution to this?
Edit: I solved it by doing a clean npm i on all my dependencies