react-diagrams
react-diagrams copied to clipboard
PortWidget cannot be used as a JSX component
trafficstars
After updating to React 18 and to v6.7.4 every PortWidget and LinkWidget are failing to render and throw following ts error:
JSX element class does not support attributes because it does not have a 'props' property.ts(2607) 'PortWidget' cannot be used as a JSX component. Its instance type 'PortWidget' is not a valid JSX element. Type 'PortWidget' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, and 2 more.ts(2786).
Usage is as simple as that: <PortWidget engine={engine} port={port} key={port.getID()}>...</PortWidget>
I'm getting this also.