Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'eslint-config-prettier/react'

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:24

github_iconTop GitHub Comments

marcelmokoscommented, Sep 6, 2018

This can happen when you are missing peer dependency.

yarn add --dev eslint-config-prettier

f00zcommented, Jun 7, 2017

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:

Read more comments on GitHub >

github_iconTop 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. -
I was missing the package @vue/prettier/@typescript-eslint, ... 'prettier' declared in '.eslintrc.js': Cannot find module 'eslint-plugin-prettier' Require ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found