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.

"warning " > @testing-library/user-event@12.6.2" has unmet peer dependency "@testing-library/dom@>=7.21.4".

See original GitHub issue

Hi, newbie here, so I will try to put as much info as I can. This is not a problem using the package, just a warning on install.

  • @testing-library/user-event version: 12.6.2
  • node: 14.x

What you did: When running yarn install with the latest user-event version, while linking dependencies I get the following warning: warning " > @testing-library/user-event@12.6.2" has unmet peer dependency "@testing-library/dom@>=7.21.4".

From what I have read, this means that in the user-event package, it is missing the package as a dependency, and this should be corrected in the user-event package. Is that correct?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NixBikscommented, Jul 19, 2022

@mr-bjerre Did you resolve the issue with pnpm?

No. However you can have pnpm return success even though there are unmet peer dependencies. Not exactly a solution but a workaround I guess

0reactions
carlbleickcommented, Jul 19, 2022

@mr-bjerre Did you resolve the issue with pnpm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unmet peer dependency warning when the peer ... - GitHub
Installing a dependency and its peer dependency at the same time generates a warning "Unmet peer dependency" even though the peer dependency ...
Read more >
YARN warning "has unmet peer dependency". What do with ...
A peer dependency should be installed by yourself. Usually, the purpose is to prevent version conflicts. So, when you read a message such...
Read more >
Error npm UNMET PEER DEPENDENCY warning - Edureka
I'm on Windows 10, with Node 5.6.0 and npm 3.6.0. I'm trying to install angular-material and mdi into my working folder. npm install ......
Read more >
[package] has unmet peer dependency - Notes and Anecdotes
I'll sometime see a warning telling me that a dependency (that I have installed) has an unmet peer dependency. I don't know what...
Read more >
styled-components@5.3.5" has unmet peer dependency ...
Simply installing Storybook HTML with the recommended method causes a ton of dependency warnings to be emitted every time the package manager (Yarn)...
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