Skip to content
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

This version is not compatible with react 17.02 #1121

Closed
Subhanshu007 opened this issue Sep 9, 2022 · 2 comments
Closed

This version is not compatible with react 17.02 #1121

Subhanshu007 opened this issue Sep 9, 2022 · 2 comments

Comments

@Subhanshu007
Copy link

Describe the feature you'd like:

Suggested implementation:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

npm ERR!npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.0.0" from @testing-library/[email protected]
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

@pascalvos
Copy link

use
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "^8.0.1",

@eps1lon
Copy link
Member

eps1lon commented Sep 9, 2022

This is intended. For Reach 17, use @testing-library-react@^12.x. For React 18, use @testing-library-react@^13.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants