create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Failed to load plugin '@typescript-eslint', Cannot find module 'eslint/use-at-your-own-risk'

Open Brolly0204 opened this issue 3 years ago • 3 comments
trafficstars

npm start the following error is reported

ERROR in [eslint] Failed to load plugin '@typescript-eslint' declared in 'package.json » eslint-config-react-app#overrides[0]': Cannot find module 'eslint/use-at-your-own-risk' Require stack:

  • /Users/jasonli/web/专项训练营/datav/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js
  • /Users/jasonli/web/专项训练营/datav/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js
  • /Users/jasonli/web/专项训练营/datav/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
  • /Users/jasonli/web/专项训练营/datav/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
  • /Users/jasonli/web/专项训练营/datav/node_modules/@eslint/eslintrc/dist/eslintrc.cjs

macOS 12.2.1 node v15.14.0 create-react-app v15.0.1

Brolly0204 avatar Jul 23 '22 12:07 Brolly0204

same problem

jliukai avatar Aug 29 '22 21:08 jliukai

This is because eslint has not been upgraded to version 8

promiseLC avatar Sep 03 '22 13:09 promiseLC

this could be because of your version of node that you are running. I get it when running a project on 12.6.0 for instance, but I also use nvm and when I use version 14.16.0 I have no issues.

arindoneATK avatar Sep 07 '22 01:09 arindoneATK

I get this error when editing WebWorkers:

new Worker(
    /* webpackChunkName: "block-parser-worker" */ new URL('web-workers/blockParserWorker.js', import.meta.url)
  );

node v16.17.2 react-scripts: 5.0.1

droid001 avatar Jan 31 '23 13:01 droid001

same problem

ESLint: 8.22.0

Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js » eslint-config-airbnb-typescript » /node_modules/eslint-config-airbnb-typescript/lib/shared.js': Cannot find module 'eslint/use-at-your-own-risk'

node v14.20.0

    "@typescript-eslint/eslint-plugin": "^5.33.1",
    "@typescript-eslint/parser": "^5.33.1",
    "eslint": "^8.22.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-airbnb-typescript": "^17.0.0",
    "eslint-import-resolver-typescript": "^3.5.0",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-jsx-a11y": "^6.6.1",
    "eslint-plugin-react": "^7.30.1",
    "eslint-plugin-react-hooks": "^4.6.0",

yutingkuang avatar Feb 01 '23 09:02 yutingkuang