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

@testing-library/react TypeError: defineProperties is not a function #1261

Open
Nikodem98 opened this issue Dec 18, 2023 · 4 comments
Open

Comments

@Nikodem98
Copy link

Nikodem98 commented Dec 18, 2023

Hi, I get this error whenever I import @testing-library/react
image

"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.0.0",

@meeowngit
Copy link

Can you try to upgrade your react version to v18+?

@Nikodem98
Copy link
Author

we use "react": "^18.2.0",

@meeowngit
Copy link

meeowngit commented Dec 18, 2023

Oops, sorry 😃 I guess issue is totally different! btw I am also having not the same issue but my renderHook is not working and giving undefined

@MatanBobi
Copy link
Member

@Nikodem98, can you please provide a reproduction of this one? At the moment this issue doesn't have a lot of us to investigate.
You can use https://testing-library.com/new-rtl to create the reproduction.

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