create-react-app
create-react-app copied to clipboard
Failed to load plugin '@typescript-eslint', Cannot find module 'eslint/use-at-your-own-risk'
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
same problem
This is because eslint has not been upgraded to version 8
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.
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
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",