elements icon indicating copy to clipboard operation
elements copied to clipboard

Compile Error "Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'

Open LucyGit opened this issue 10 months ago • 2 comments

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'.

LucyGit avatar Dec 24 '24 08:12 LucyGit