Skip to content

'LineTo' cannot be used as a JSX component. #65

@thisisjacopo

Description

@thisisjacopo

Hello there, I'm encountering the following error when trying to use the component within my .tsx file:

'LineTo' cannot be used as a JSX component.
  Its instance type 'LineTo<LineToProps>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/myLocalPath").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.

React v 17.0.2, Typescript 4.4.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions