You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the above config and then ran yarn and the version that yarn picks for the @types/react-dom package for @testing-libary/react is v17.X.Y because it is specified as * in your config, which breaks the use of React.Fragment since in react 18 the {} was added to the type of fragment. This also breaks React.ReactPortal typings.
Suggested solution:
Specify ^18.0.0 as the typings version.
The text was updated successfully, but these errors were encountered:
Nokel81
added a commit
to Nokel81/react-testing-library
that referenced
this issue
Apr 11, 2022
@testing-library/react
version: ^13.0.0Relevant code or config:
Problem description:
I have installed the above config and then ran
yarn
and the version that yarn picks for the@types/react-dom
package for@testing-libary/react
isv17.X.Y
because it is specified as*
in your config, which breaks the use ofReact.Fragment
since in react 18 the{}
was added to the type of fragment. This also breaksReact.ReactPortal
typings.Suggested solution:
Specify
^18.0.0
as the typings version.The text was updated successfully, but these errors were encountered: