npm install eslint-plugin-react@latest --save-dev
Thanks! I had the same problem, installing this worked for me
Answer from Jonathan Gomez on Stack OverflowGitHub
github.com › eslint › eslint › issues › 3782
Error: Cannot find module 'eslint-plugin-react' · Issue #3782 · eslint/eslint
September 13, 2015 - Fresh global installation, first test and error :( Any ideas? pawelgrzybek$ eslint js/script1.js module.js:338 throw err; ^ Error: Cannot find module 'eslint-plugin-react' at Function.Modul...
Author pawelgrzybek
Top answer 1 of 7
13
npm install eslint-plugin-react@latest --save-dev
Thanks! I had the same problem, installing this worked for me
2 of 7
7
I had the same problem in VS code. Add the following settings in VS code ESLint settings:
{
"eslint.workingDirectories": [
"Dir1",
"Dir2"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
]
}
Note: Dir1 and Dir2 are two directories with their respective .eslintrc files.
GitHub
github.com › microsoft › vscode-eslint › issues › 759
Failed to load plugin 'react' declared in 'react1/.eslintrc.js': Cannot find module 'eslint-plugin-react' · Issue #759 · microsoft/vscode-eslint
June 28, 2019 - You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... Failed to load plugin 'react' declared in 'react1/.eslintrc.js': Cannot find module 'eslint-plugin-react'#759
Author itwara
npm
npmjs.com › package › eslint-plugin-react-refresh
eslint-plugin-react-refresh - npm
import { defineConfig } from "eslint/config"; import { reactRefresh } from "eslint-plugin-react-refresh"; export default defineConfig({ // in main config for TSX/JSX source files plugins: { "react-refresh": reactRefresh.plugin, }, rules: { "react-refresh/only-export-components": "error", }, });
» npm install eslint-plugin-react-refresh
Published Feb 23, 2026
Version 0.5.2
Author Arnaud Barré
GitHub
github.com › microsoft › vscode-eslint › issues › 71
Failed to load plugin react: Cannot find module 'eslint-plugin-react' every time I open a .js file · Issue #71 · microsoft/vscode-eslint
January 27, 2016 - Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... Failed to load plugin react: Cannot find module 'eslint-plugin-react' every time I open a .js file#71
Author dbaeumer
GitHub
github.com › AtomLinter › linter-eslint › issues › 833
Error: Failed to load plugin react: Cannot find module 'eslint-plugin-react' · Issue #833 · AtomLinter/linter-eslint
December 17, 2016 - Reload to refresh your session. ... This repository was archived by the owner on Aug 7, 2023. It is now read-only. ... This repository was archived by the owner on Aug 7, 2023. It is now read-only. ... I was able to fix this error by going into the plugin directory and installing the following packages: npm install eslint-plugin-react eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-import
Author design1online
GitHub
github.com › eslint › eslint › issues › 9167
Cannot find module 'eslint-plugin-react' with eslint --init · Issue #9167 · eslint/eslint
February 3, 2017 - Reload to refresh your session. Dismiss alert · {{ message }} eslint / eslint Public · There was an error while loading. Please reload this page. Notifications · You must be signed in to change notification settings · Fork 4.8k · Star 26.2k · New issueCopy link · New issueCopy link · Closed · Closed · Cannot find module 'eslint-plugin-react' with eslint --init#9167 ·
Author manastunga787
GitHub
github.com › standard › standard › issues › 1329
"Cannot find module 'eslint-plugin-react'" when trying to run standard · Issue #1329 · standard/standard
May 17, 2019 - Reload to refresh your session. ... There was an error while loading. Please reload this page. ... Not sure, I assume latest. Below error appears event when trying to run what I pressume should be a version command (standard -v or standard -V) ... standard: Unexpected linter output: Error: Failed to load plugin 'react' declared in '--config » eslint-config-standard-jsx': Cannot find module 'eslint-plugin-react' Require stack: { ...
Author binaryben
GitHub
github.com › standard › standard › issues › 137
Error: Cannot find module 'eslint-plugin-react' (v3.8.0) · Issue #137 · standard/standard
October 28, 2014 - I updated from 3.7.3 to 3.8.0 and seem to be getting the following error: Error: Cannot find module 'eslint-plugin-react' $ ./node_modules/.bin/standard --version 3.7.3 $ npm test > rest...
Published May 12, 2015
Author pdehaan
GitHub
github.com › jsx-eslint › eslint-plugin-react › issues › 2270
Cannot find module 'eslint-plugin-react' in production · Issue #2270 · jsx-eslint/eslint-plugin-react
November 30, 2018 - ... There was an error while loading. Please reload this page. ... Just for info. To fix issue, "eslint-plugin-react": "^7.13.0" should be added to the main dependencies instead of devDependencies.
Published May 11, 2019
Author likeuwill
GitHub
github.com › eslint › eslint › issues › 5721
Cannot find module 'eslint-plugin-react' error in a no react project · Issue #5721 · eslint/eslint
Reload to refresh your session. ... archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionquestionThis issue asks a question about ESLintThis issue asks a question about ESLint ... What parser (default, Babel-ESLint, etc.) are you using? babel-eslint(default runs into the same error) ... { "parser": "babel-eslint", "plugins": [ "html" ], "globals": { "AlipayJSBridge": true }, "env": { "es6": true, "browser": true, "jasmine": true, "node": true }, "rules": { "array-bracke
GitHub
github.com › jsx-eslint › eslint-plugin-react › issues › 2329
ESLint: Error while loading rule 'react/display-name': Cannot find module 'react' · Issue #2329 · jsx-eslint/eslint-plugin-react
June 25, 2019 - Reload to refresh your session. ... There was an error while loading. Please reload this page. ... ESLint: Error while loading rule 'react/display-name': Cannot find module 'react' from 'C:\Users\Me\Websites' Occurred while linting C:\Users\Me\Websites\Templates\core\src\config\next\_app.tsx. The plugin ...
Author TidyIQ
GitHub
github.com › Microsoft › vscode-eslint › issues › 532
Failed to load plugin react even when 'eslint-plugin-react' is installed globally? · Issue #532 · microsoft/vscode-eslint
April 28, 2018 - You switched accounts on another tab or window. Reload to refresh your session. ... The extension keeps giving me the error "Failed to load plugin react: Cannot find module 'eslint-plugin-react'" even when I have installed 'eslint-plugin-react' is installed globally.
Author Scallion3008
GitHub
github.com › standard › standard › issues › 1443
Error: Failed to load plugin 'react' declared in '--config » eslint-config-standard-jsx': Cannot find module 'eslint-plugin-react' when trying to use standard with PhpStorm · Issue #1443 · standard/standard
April 16, 2019 - Reload to refresh your session. ... There was an error while loading. Please reload this page. ... Error: Failed to load plugin 'react' declared in '--config » eslint-config-standard-jsx': Cannot find module 'eslint-plugin-react' when trying to use standard with PhpStorm#1443
Author t-heuser
Stack Overflow
stackoverflow.com › questions › 75319068 › cannot-find-module-eslint-plugin-eslint-error
create react app - Cannot find module 'eslint-plugin-eslint' error - Stack Overflow
https://create-react-app.dev/docs/setting-up-your-editor/#extending-or-replacing-the-default-eslint-config ... Sign up to request clarification or add additional context in comments. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... New site design and philosophy for Stack Overflow: Starting February 24, 2026... 6 GridView to refresh when button click updates data
GitHub
github.com › standard › snazzy › issues › 8
Cannot find module 'eslint-plugin-react' with Node 4.2.6 (5.6 works) · Issue #8 · standard/snazzy
October 12, 2015 - Reload to refresh your session. ... There was an error while loading. Please reload this page. ... Error: Failed to load plugin react: Cannot find module 'eslint-plugin-react' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require ...
Author knownasilya
GitHub
github.com › eslint › eslint › discussions › 13813
ESLint couldn't find the plugin "eslint-plugin-react". · eslint/eslint · Discussion #13813
Try reinstalling by running the following: npm install eslint-plugin-react@latest --save-dev The plugin "eslint-plugin-react" was referenced from the config file in ".eslintrc.js".
Author eslint
npm
npmjs.com › package › eslint-plugin-react
eslint-plugin-react - npm
It is also possible to install ESLint globally rather than locally (using npm install -g eslint). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case. ... If you are using the new JSX transform from React 17, extend react/jsx-runtime in your eslint config (add "plugin:react/jsx-runtime" to "extends") to disable the relevant rules.
» npm install eslint-plugin-react
Published Apr 03, 2025
Version 7.37.5
Author Yannick Croissant
Top answer 1 of 6
18
I think if you add the module mentioned in the error message (eslint-config-react-app) it should work? eg. yarn add --dev eslint-config-react-app
2 of 6
7
There's probably a misconfiguration in your package-lock.json file, where ESLint was removed. I've encountered the exact same issue and solved it via:
cd <your-project-directory>rm package-lock.jsonrm -rf node_modulesnpm install
You can run npm ls eslint --depth=99 to verify the eslint package is installed. I've stumbled upon this via a comment from feross on GitHub.
JetBrains
youtrack.jetbrains.com › issue › WEB-42095 › Using-globally-installed-standard-package-causes-Cannot-find-module-eslint-plugin-react-error
Jetbrains
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong