-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Type conflicts in testing-library vs react #1184
Comments
We need to move In the meantime, make sure you only have a single version of |
@eps1lon will do, thank you! |
I'm in favor of using optional peer dependencies too, as I've had module not found errors using Testing Library packages with strict package managers (pnpm, npm without the default |
It's about different dependencies so I wouldn't consider this a duplicate issue. |
@testing-library/react
version: 12.1.2jsdom: 16.6.0
react: 17.0.2
What you did:
My team is not yet ready to upgrade to react 18, but I'd like to keep
@testing-library/react
as up to date as possible, so I'm trying to upgrade from 12.1.2 to 12.1.5.What happened:
All the errors are related to type conflicts in react vs testing-library. Almost all of them are error
TS2717
:There is also one duplicate identifier error:
Problem description:
I expect to be able to upgrade testing-library without type conflicts.
Suggested solution:
I am not sure if this issue is a bug within testing-library, or some kind of dependency collision within my setup. I have tried upgrading @types/react but this results in even more errors.
The text was updated successfully, but these errors were encountered: