testing-library / react-testing-library

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

Home Page:https://testing-library.com/react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Nikodem98 opened this issue · comments

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",

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

we use "react": "^18.2.0",

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

@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.

I'm resolving this as no reproduction was added. If someone's experiencing this and can provide a reproduction, please comment here and I'll re-open.