question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CRA has unmet peer dependencies

See original GitHub issue

Whenever 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:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
andrewmclagancommented, Mar 11, 2020

I would bump this.

When using Yarn 2 (berry) and running npx @yarnpkg/doctor we receive:

/Users/.../app/package.json:42:36: Unmet transitive peer dependency on @testing-library/dom@>=5, via @testing-library/user-event@^7.1.2
1reaction
NMinhNguyencommented, Apr 25, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found