IssueRaiser

Failed to load plugin '@typescript-eslint' declared in '.eslintrc » eslint-config-react-app#overrides[0]': Cannot find module 'typescript'

### Describe the bug When I run `eslint: lint whole folder` task, it fails because of the error mentioned in the title. ### Did you try recovering your dependencies? Yes, I did. ### Which terms did you search for in User Guide? The issue is not related to any of them, it's ESLint. ### Environment ``` Environment Info: current version of create-react-app: 3.4.1 running from C:\Users\X\AppData\Roaming\npm\node_modules\create-react-app System: OS: Windows 10 10.0.18363 CPU: (8) x64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz Binaries: Node: 12.10.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Users\X\AppData\Roaming\npm\yarn.CMD npm: 6.14.4 - C:\Users\X\AppData\Roaming\npm\npm.CMD Browsers: Edge: 44.18362.449.0 Internet Explorer: Not Found npmPackages: react: ^16.13.1 => 16.13.1 react-dom: ^16.13.1 => 16.13.1 react-scripts: ^3.4.1 => 3.4.1 npmGlobalPackages: create-react-app: Not Found ``` ### Steps to reproduce Just run `eslint: lint whole folder` task. This is my ESLint config: ```json { "extends": [ "react-app", "airbnb", "prettier" ], "env": { "mocha": true, "es6": true, "commonjs": true, "browser": true }, "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 2020, "sourceType": "module", "ecmaFeatures": { "jsx": true, "modules": true, "experimentalObjectRestSpread": true } }, "plugins": [ "prettier" ], "rule

Posted by meness on May 1, 2020, 6:58 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (SaaS)

Failed to load plugin '@typescript-eslint' declared in '.eslintrc » eslint-config-react-app#overrides[0]': Cannot find module 'typescript'

menessMay 1, 2020, 6:58 AM

### Describe the bug When I run `eslint: lint whole folder` task, it fails because of the error mentioned in the title. ### Did you try recovering your dependencies? Yes, I did. ### Which terms did you search for in User Guide? The issue is not related to any of them, it's ESLint. ### Environment ``` Environment Info: current version of create-react-app: 3.4.1 running from C:\Users\X\AppData\Roaming\npm\node_modules\create-react-app System: OS: Windows 10 10.0.18363 CPU: (8) x64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz Binaries: Node: 12.10.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Users\X\AppData\Roaming\npm\yarn.CMD npm: 6.14.4 - C:\Users\X\AppData\Roaming\npm\npm.CMD Browsers: Edge: 44.18362.449.0 Internet Explorer: Not Found npmPackages: react: ^16.13.1 => 16.13.1 react-dom: ^16.13.1 => 16.13.1 react-scripts: ^3.4.1 => 3.4.1 npmGlobalPackages: create-react-app: Not Found ``` ### Steps to reproduce Just run `eslint: lint whole folder` task. This is my ESLint config: ```json { "extends": [ "react-app", "airbnb", "prettier" ], "env": { "mocha": true, "es6": true, "commonjs": true, "browser": true }, "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 2020, "sourceType": "module", "ecmaFeatures": { "jsx": true, "modules": true, "experimentalObjectRestSpread": true } }, "plugins": [ "prettier" ], "rule

Comments (0)

No comments yet. Start the discussion.

Comment on this issue