react-testing-library icon indicating copy to clipboard operation
react-testing-library copied to clipboard

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

Open Nikodem98 opened this issue 2 years ago • 4 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",

Nikodem98 avatar Dec 18 '23 08:12 Nikodem98

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

meeowngit avatar Dec 18 '23 13:12 meeowngit

we use "react": "^18.2.0",

Nikodem98 avatar Dec 18 '23 13:12 Nikodem98

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

meeowngit avatar Dec 18 '23 14:12 meeowngit

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

MatanBobi avatar Jan 15 '24 15:01 MatanBobi

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.

MatanBobi avatar Jun 06 '24 11:06 MatanBobi