User-event: TypeError: (0 , _dom.getConfig) is not a function

Created on 8 Jul 2020  路  3Comments  路  Source: testing-library/user-event

Screenshot 2020-07-08 at 5 29 11 PM

I already have latest version of @testing-library/user-event
and @testing-library/dom (Indirectly refrenced)

Still getting this error in my React JS code, please help me.

question

Most helpful comment

You need to have the latest version of DOM Testing Library installed. Then that will work.

All 3 comments

@kentcdodds
I just saw this https://github.com/testing-library/user-event/releases
And so i reverted user-events to point to c12.0.2 and it started working fine.

That means with the current new release: v12.0.11. The same above error coming up.
Please do fix this with current version also.

Thanks

You need to have the latest version of DOM Testing Library installed. Then that will work.

Can confirm. Just ran into this issue, but I forgot to install @testing-library/dom.

Was this page helpful?
0 / 5 - 0 ratings