I've noted that somewhere in the last month or so, I've had to pin @inductiveautomation/ignition-web-ui to 1.3.0 in order to avoid the following breakage on the WebUI Storybook's Button component:
TS2786: 'Button' cannot be used as a JSX component.
Its type 'ForwardRefExoticComponent<Pick<IAButtonProps, "children" | "className" | "form" | "id" | "tabIndex" | "rel" | "onClick" | "component" | "stretch" | "size" | "disabled" | "dataLabel" | ... 9 more ... | "soloIcon"> & RefAttributes<...>>' is not a valid JSX element type.
Type 'ForwardRefExoticComponent<Pick<IAButtonProps, "children" | "className" | "form" | "id" | "tabIndex" | "rel" | "onClick" | "component" | "stretch" | "size" | "disabled" | "dataLabel" | ... 9 more ... | "soloIcon"> & RefAttributes<...>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
Type 'ReactElement<any, string | JSXElementConstructor<any>> | null' is not assignable to type 'ReactNode'.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
99 | margin: '10px'
100 | }}>
> 101 | <Button
| ^^^^^^
102 | download
103 | disabled={props.deviceConfig.data.indexOf('Configured.eds') < 0}
104 | href={dlRouteUrl + "/Configured.eds"}
If I disallow upgrading to 1.3.1 or 1.3.2, my build succeeds. A look into the node cache at Button.d.ts between the 1.3.0 and 1.3.2 shows a substantial type change, suggesting (I think) that pinning React to 18.2.0 may not be right.
Anyone recognize this and have some quick pointers? Or am I going to have dig into dependency hell?