Skip to content

React 18 support #1485

Open
Open
@jkytomak

Description

@jkytomak

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"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions