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
I used @vscode-elements/react-elements 0.5.0.
When I upgrated react to 19.0.0, and run "tsc -b" I got the following error:
src/components/AuthTable.tsx:265:38 - error TS2786: 'VscodeCheckbox' cannot be used as a JSX component.
Its type 'ReactWebComponent<VscodeCheckbox, { onChange: EventName<Event>; }>' is not a valid JSX element type.
Type 'ForwardRefExoticComponent<Omit<HTMLAttributes<VscodeCheckbox>, "name" | "type" | "defaultChecked" | "onChange" | "disabled" | "focused" | "invalid" | "label" | "required" | ... 24 more ... | "update"> & EventListeners<...> & Partial<...> & RefAttributes<...>>' is not assignable to type '(props: any) => ReactNode | Promise<ReactNode>'.
Type 'ReactNode' is not assignable to type 'ReactNode | Promise<ReactNode>'.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode | Promise<ReactNode>'.
Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
The text was updated successfully, but these errors were encountered:
From React 19 you don't need to use this React wrapper package, as web components are fully supported. I haven't had a chance to try how it works in practice, but when I have time I'll update the docs. There is an article about this topic. I would appreciate it if you could share your experiences.
I used @vscode-elements/react-elements 0.5.0.
When I upgrated react to 19.0.0, and run "tsc -b" I got the following error:
The text was updated successfully, but these errors were encountered: