zcreativelabs / react-simple-maps

Beautiful React SVG maps with d3-geo and topojson using a declarative api.
https://www.react-simple-maps.io/
MIT License
3.03k stars 424 forks source link

Not compatible with @types/react:18.2.22 #339

Closed Eusebiotrigo closed 9 months ago

Eusebiotrigo commented 9 months ago

It was working fine till the last update from @types/react till this PR was merged in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/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 commented 9 months ago

However, it could potentially be fixed with

yarn why @types/react

yarn dedupe @types/react