You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting latest version, the devDependencies of @types/react and @types/react-dom were relocated to the dependencies section, forcing the installation of React v18 types which are breaking any v16 application.
This is a breaking change and should be (1) reverted and (2) pushed to the next major release of React Flow.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Install latest version of React Flow with a React v16 application.
Expected behavior
One of the many issues we are facing is:
TS2786: 'Component' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<T, any, any> | null' is not a valid JSX element.
Type 'Component<T, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<T, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Screenshots or Videos
No response
Platform
OS: Any
Browser: N/A
Version: Latest
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
Starting latest version, the devDependencies of @types/react and @types/react-dom were relocated to the dependencies section, forcing the installation of React v18 types which are breaking any v16 application.
This is a breaking change and should be (1) reverted and (2) pushed to the next major release of React Flow.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Install latest version of React Flow with a React v16 application.
Expected behavior
One of the many issues we are facing is:
TS2786: 'Component' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<T, any, any> | null' is not a valid JSX element.
Type 'Component<T, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<T, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: