i had the same issue.

In your root workspace you have a .vscode folder with a settings.json.

Add the following:

{
  "eslint.workingDirectories": [
    "./{PATH_TO_CLIENT}" // replace {PATH_TO_CLIENT} with your own path
  ]
}

related issue: create-react-app subfolder projects do not lint

Answer from Julez on Stack Overflow
🌐
GitHub
github.com › prettier › eslint-config-prettier › issues › 203
Cannot find module 'eslint-plugin-prettier' · Issue #203 · prettier/eslint-config-prettier
September 11, 2021 - It appears that eslint thinks the "prettier" plugin is related to eslint-plugin-prettier rather than eslint-config-prettier. Cannot find module 'eslint-plugin-prettier' // .eslintrc.json { "root": true, "plugins": ["@nrwl/nx", "prettier"...
Author   dapperdandev
🌐
GitHub
github.com › prettier › eslint-plugin-prettier › issues › 396
Failed to load plugin 'prettier' declared in '.eslintrc.js': Cannot find module 'eslint-plugin-prettier' · Issue #396 · prettier/eslint-plugin-prettier
March 3, 2021 - The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc). 2. If ESLint is installed globally, then make sure 'eslint-plugin-prettier' is installed globally as well.
Author   AgoniNemo
🌐
GitHub
github.com › prettier › prettier-atom › issues › 505
Failed to load plugin 'prettier' declared in 'CLIOptions': Cannot find module 'eslint-plugin-prettier' · Issue #505 · prettier/prettier-atom
May 12, 2019 - I reviewed older issues, but didn't find anything that matched this issue. Prettier is no longer working properly in Atom. I have all my dependencies updated (as far as I can tell). I've tested against older versions of the code and this issue only occurs with these updated dependencies (list below). Here is the error I get in Atom when I try to run auto-formatting with Prettier: Here are the dev dependencies from my package.json file: "eslint": "^6.0.1", "eslint-config-prettier": "^4.3.0", "eslint-plugin-node": "9.1.0", "eslint-plugin-prettier": "^3.1.0", "prettier": "^1.18.2",
Author   christroutner
🌐
npm
npmjs.com › package › eslint-plugin-prettier
eslint-plugin-prettier - npm
./node_modules/.bin/eslint --format codeframe pkg/commons-atom/ActiveEditorRegistry.js (code from nuclide). npm install --save-dev eslint-plugin-prettier eslint-config-prettier npm install --save-dev --save-exact prettier
      » npm install eslint-plugin-prettier
    
Published   Jan 14, 2026
Version   5.5.5
Author   Teddy Katz
Find elsewhere
🌐
npm
npmjs.com › package › prettier-eslint
prettier-eslint - npm
If it cannot find one, then it will use the version that prettier-eslint has installed locally. If you'd like to specify a path to the eslint module you would like to have prettier-eslint use, then you can provide the full path to it with the ...
      » npm install prettier-eslint
    
Published   May 07, 2025
Version   16.4.2
Author   Kent C. Dodds
🌐
GitHub
github.com › WordPress › gutenberg › issues › 20027
Error: Cannot find module 'prettier' with @wordpress/eslint-plugin v3.4.0 · Issue #20027 · WordPress/gutenberg
See the output on Travis: https://travis-ci.com/kasparsd/wp-scripts-eslint-prettier-bug/jobs/283358536#L519-L538 · Downgrading @wordpress/eslint-plugin to version 3.3.0 fixes the problem -- see this pull request:
🌐
YouTube
youtube.com › huy nguyen usa
How to fix ESLint couldn't find the plugin "eslint-plugin-prettier" error - YouTube
How to fix the "ESLint couldn't find the plugin "eslint-plugin-prettier"" error.The package "eslint-plugin-prettier" was not found when loaded as a Node modu...
Published   September 5, 2023
Views   1K
🌐
GitHub
github.com › prettier › eslint-plugin-prettier › issues › 556
ESLint: Failed to load plugin 'prettier' declared in '../../.eslintrc.js · Issue #556 · prettier/eslint-plugin-prettier
February 4, 2023 - But now it is throwing error at the time of building project. error - ESLint: Failed to load plugin 'prettier' declared in '../../.eslintrc.js » ./config/base.eslintrc.js': Cannot find module 'eslint-plugin-prettier' Require stack: - /../projects/xxxxx/xxxx/xxxxx/__placeholder__.js
Author   Abhijeet20Shots
🌐
Drupal
drupal.org › project › gitlab_templates › issues › 3357971
ESLINT needs the eslint-plugin-prettier plugin [#3357971] | Drupal.org
October 9, 2023 - Try reinstalling by running the following: npm install eslint-plugin-prettier@latest --save-dev The plugin "eslint-plugin-prettier" was referenced from the config file in "../.eslintrc.json » ./core/.eslintrc.json". error Command failed with exit code 2. Should the missing plugin be loaded by default for all, or in the ESLINT job itself in the template? Or is it up to the developer to make a custom step to get the plugin?
🌐
GitHub
github.com › joshwcomeau › guppy › issues › 71
Cannot find module 'eslint-plugin-prettier' · Issue #71 · joshwcomeau/guppy
Cannot find module 'eslint-plugin-prettier'#71 · Copy link · melanieseltzer · opened · on Jul 16, 2018 · Issue body actions · Trying to get this set up locally on my machine. Per the CONTRIBUTING.md I have: Forked and cloned to my machine · npm install (this wasn't in the instructions but assumed I needed to do this) npm run start - this is where the error is thrown, and then process hangs ·
🌐
Stack Overflow
stackoverflow.com › questions › 75993812 › eslint-failed-to-load-plugin-prettier-declared-in-eslintrc-js-cannot
next.js - ESLint: Failed to load plugin 'prettier' declared in '../../.eslintrc.js Cannot find module 'eslint-plugin-prettier' - Stack Overflow
module.exports = { extends: [ 'airbnb', 'airbnb/hooks', 'eslint:recommended', 'plugin:prettier/recommended' ], parser: 'babel-eslint', parserOptions: { ecmaVersion: 9, ecmaFeatures: { experimentalObjectRestSpread: true, impliedStrict: true, classes: true } }, env: { browser: true, node: true, jest: true }, settings: { 'import/internal-regex': '^~' }, rules: { strict: 0, 'prettier/prettier': 'error', 'no-console': 'error', 'no-debugger': 'error', 'no-alert': 'error', 'no-await-in-loop': 0, 'no-return-assign': ['error', 'except-parens'], 'no-restricted-syntax': [ 2, 'ForInStatement', 'LabeledSta
🌐
Reddit
reddit.com › r/react › help with create-react-app and eslint/prettier
r/react on Reddit: help with create-react-app and eslint/prettier
December 8, 2022 -

so ive been messing around with create-react-app, ive probably set it up dozens of times now to try to debug why prettier wont work. I also get a bunch of vulnerabilities in the console once i do install prettier (but it still wont work). here is my process.

npx create-react-app test
npm install --save-dev --save-exact prettier

1. added 1 package, and audited 1497 packages in 2s
236 packages are looking for funding
  run `npm fund` for details

74 vulnerabilities (69 moderate, 5 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

ignore the warnings and make a new .prettierrc.json in the root directory of the project. I paste the following into the prettier config:

{
"semi": true, "singleQuote": true, "tabWidth": 2, "trailingComma": "es5", "printWidth": 80 }

I add .eslintrc.json to the root directory as well, and then i add this to it:

{ "extends": ["react-app", "react-app/jest", "plugin:prettier/recommended"], "rules": { 
"prettier/prettier": ["error"] } }  

i press ctrl + , to make sure format on save is checked in the settings of vscode. i also make sure that the prettier extension is installed from the vs code store

I open and close back vscode, make a bad formatting on purpose like :

let x_______________ = 5. (the ____ are spaces with spacebar)

and i expect that when i press ctrl + s, it will remove the spaces, or even add the semicolon at the end, but it doesnt. prettier doesnt work at all. here is my repo: https://github.com/ForkEyeee/test

i guess my questions are: why do i get all of those vulnerabilties? is this normal cause all i do is start a new cra, then install prettier and i get so many errors. also, cra supports eslint out of the box, but not prettier, so is my install process of prettier correct. i even tried vite briefly and i had the same issue as webpack.

🌐
Reddit
reddit.com › r/vscode › cannot for the life of me make a react project that uses eslint, but doesn't use prettier
r/vscode on Reddit: Cannot for the life of me make a react project that uses eslint, but doesn't use prettier
January 2, 2020 -

spent the past few days trying to get anything to work, but I always end up with a bunch of problems from eslint(prettier/prettier).

If I add /* eslint-disable prettier/prettier */ then the program doesn't compile:

./src/index.jsx
  Line 1:1:  Definition for rule 'prettier/prettier' was not found  prettier/prettier

Search for the keywords to learn more about each error.

if anyone has suggestions or knows a good guide, that would be greatly appreciated. I've been trying every suggestion I can find online, but it always ends up back at the above situation.