CRA has unmet peer dependencies
See original GitHub issueWhenever I installed new CRA using npx
, there are three unmet dependencies:
warning " > @testing-library/user-event@8.1.0" has unmet peer dependency "@testing-library/dom@>=5".
warning "react-scripts > eslint-config-react-app@5.2.0" has incorrect peer dependency "eslint-plugin-flowtype@3.x".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
I saw related PR for making TS optional, but what about those two?
I tried deleting node_modules
and even creating a new one, but still those warnings exist.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Why do I get 'has unmet peer dependency' warning on CRA ...
On my CRA (Create-React-App) app, I think I have a right peer dependency "eslint" for dependencies showing below, but still get the warning ......
Read more >Error npm UNMET PEER DEPENDENCY warning - Edureka
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met. Check...
Read more >How to handle peer dependencies when developing modules
The problem with peer dependencies is npm and yarn don't install them at all. This is the right behavior for production purpose but...
Read more >How To Resolve The Webpack "Unmet Peer Dependency ...
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met. Check...
Read more >Bleeding Edge - React Native Elements
If you see the UNMET PEER DEPENDENCY warning for react-native-vector-icons like below, you can ignore it as react-native-vector-icons is already installed ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would bump this.
When using Yarn 2 (berry) and running
npx @yarnpkg/doctor
we receive:Don’t mark this as stale yet, would be good for #8155 to land first. It includes https://github.com/testing-library/eslint-plugin-testing-library/blob/master/docs/rules/no-dom-import.md to deter users from importing the DOM library