Cannot find module 'eslint-config-prettier/react'
See original GitHub issueWhen using $ eslint **/*.{js,jsx} --quiet
I get the following error:
and here is my .eslintrc.json `{ “extends”:[ “airbnb”, “prettier”, “prettier/react” ], “plugins”:[ “prettier” ], “parserOptions”:{ “ecmaVersion”:2016, “sourceType”:“module”, “ecmaFeatures”: { “jsx”:true } }, “env”:{ “es6”:true, “browser”:true, “node”:true } }
Any ideas what I am doing wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:24
Top Results From Across the Web
Cannot find module 'eslint-plugin-prettier' - Stack Overflow
I have VSCode settings adjusted, so that is fine, but this simple doesn't work. react-native · eslint · prettier · Share.
Read more >eslint-config-prettier-react - npm
Start using eslint-config-prettier-react in your project by running `npm i eslint-config-prettier-react`. There are 7 other projects in the ...
Read more >eslint/eslint - Gitter
{js,jsx} --quiet Cannot find module 'eslint-config-prettier/react' Referenced from: /Users/johngribbin/repos/complete-intro-to-react/.eslintrc.json Error: ...
Read more >Cannot find module '@typescript-eslint/eslint-config' - YouTrack
Cannot find module '@typescript-eslint/eslint-config': unclear in what error refers.
Read more >failed to load config prettier to extend from. - You.com
I was missing the package @vue/prettier/@typescript-eslint, ... 'prettier' declared in '.eslintrc.js': Cannot find module 'eslint-plugin-prettier' Require ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This can happen when you are missing peer dependency.
yarn add --dev eslint-config-prettier
I had to use locally installed eslint to fix this error so when I reference local copy of eslint it works fine:
./node_modules/.bin/eslint **/*.{js,jsx} --quiet
similar issue: https://github.com/eslint/eslint/issues/1238