-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"warning " > @testing-library/user-event@12.6.2" has unmet peer dependency "@testing-library/dom@>=7.21.4". #551
Comments
Further explanation: #438 (comment) The solution is to install |
Thanks for the info and link Nick, I'll read up on it some more. |
If that doesn't fix the error feel free to reply here or ask on Discord: https://discord.gg/testing-library |
Hi, we have this error in our rush mono-repo, but it's hard to figure out how these work in the combination of
So the A solution that I see is that the |
Is it expected to get The issue is that @nickmccurdy I did take a look at #438 (comment) but I'm still not sure here. |
@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 |
@testing-library/user-event has a peerDep for @testing-library/dom but it's a different version than the one that @testing-library/react uses and brings in as a devDep. Solution based on research on GitHub shows we can either ignore the warning in pnpm or install the @testing-library/dom as devDep in the version that @testing-library/react uses it. I did the latter hoping that in one of the next versions of @testing-library/user-event this will be resolved. see testing-library/user-event#438 (comment) testing-library/user-event#551 (comment)
@testing-library/user-event has a peerDep for @testing-library/dom but it's a different version than the one that @testing-library/react uses and brings in as a devDep. Solution based on research on GitHub shows we can either ignore the warning in pnpm or install the @testing-library/dom as devDep in the version that @testing-library/react uses it. I did the latter hoping that in one of the next versions of @testing-library/user-event this will be resolved. see testing-library/user-event#438 (comment) testing-library/user-event#551 (comment)
@testing-library/user-event has a peerDep for @testing-library/dom but it's a different version than the one that @testing-library/react uses and brings in as a devDep. Solution based on research on GitHub shows we can either ignore the warning in pnpm or install the @testing-library/dom as devDep in the version that @testing-library/react uses it. I did the latter hoping that in one of the next versions of @testing-library/user-event this will be resolved. see testing-library/user-event#438 (comment) testing-library/user-event#551 (comment)
@testing-library/user-event has a peerDep for @testing-library/dom but it's a different version than the one that @testing-library/react uses and brings in as a devDep. Solution based on research on GitHub shows we can either ignore the warning in pnpm or install the @testing-library/dom as devDep in the version that @testing-library/react uses it. I did the latter hoping that in one of the next versions of @testing-library/user-event this will be resolved. see testing-library/user-event#438 (comment) testing-library/user-event#551 (comment)
* feat: Add app directory and restructure related files. * feat: Change unused vars to error for linting. * feat: Add Form component based on aiven-core implementation. * feat: Add userEvent package. @testing-library/user-event has a peerDep for @testing-library/dom but it's a different version than the one that @testing-library/react uses and brings in as a devDep. Solution based on research on GitHub shows we can either ignore the warning in pnpm or install the @testing-library/dom as devDep in the version that @testing-library/react uses it. I did the latter hoping that in one of the next versions of @testing-library/user-event this will be resolved. see testing-library/user-event#438 (comment) testing-library/user-event#551 (comment) * feat: Add tests for Form based on aiven-core. * feat: Introduce explicit typing for Form. - remove use of 'any' type - add stricter rule for use of any for linting * feat: Update lodash usage to match dependencies. * Remove comment about aiven-core mirroring * Remove unused library. * Rename and restructure pages files. - `index.tsx` should be reserved for resource root - files for pages can live on first level in `pages` - rename files to match naming conventions for react - update documentation to be more explicit and correct * Add login page to routing. * Reorder lint rules after rebase.
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.2What 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?The text was updated successfully, but these errors were encountered: