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.12k stars 426 forks source link

Not compatible with @types/react:18.2.22 #339

Closed Eusebiotrigo closed 1 year ago

Eusebiotrigo commented 1 year 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 1 year ago

However, it could potentially be fixed with

yarn why @types/react

yarn dedupe @types/react