React 18 support
Author: jkytomakCreated Nov 14, 2023Updated Sep 9, 2024
When trying to update to React 18 I get this kind of errors of all react-vis components:
error TS2786: 'FlexibleWidthXYPlot' cannot be used as a JSX component.
Its type 'typeof FlexibleWidthXYPlot' is not a valid JSX element type.Note: React-vis with React 17 works with fine even with newest ("17.0.80") "@types/react", if you don't get different versions of React by some other dependency. We needed to add this manual (yarn) resolve:
"resolutions": {
"@types/react": "17.0.80"
}Source: uber/react-vis