Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not compatible with @types/react:18.2.22 #339

Closed
Eusebiotrigo opened this issue Sep 25, 2023 · 1 comment
Closed

Not compatible with @types/react:18.2.22 #339

Eusebiotrigo opened this issue Sep 25, 2023 · 1 comment

Comments

@Eusebiotrigo
Copy link

It was working fine till the last update from @types/react till this PR was merged in DefinitelyTyped/DefinitelyTyped#66723

Error is:


TS2322: Type  Element  is not assignable to type  ReactNode 
Property  children  is missing in type  Element  but required in type  ReactPortal 

Tested with the example in the Readme.md and results with the same error.

@Eusebiotrigo
Copy link
Author

Eusebiotrigo commented Sep 25, 2023

However, it could potentially be fixed with

yarn why @types/react

yarn dedupe @types/react

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant