Closed Adiyasa26 closed 10 months ago
The error said
'Button' cannot be used as a JSX component. Its type 'ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type. Type 'ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => 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'.ts(2786) index.d.ts(198, 9): 'children' is declared here.
@Adiyasa26 Are you using npm version or pnpm version?
Hi @Adiyasa26, that's usually a bug with the TS server, can you try restarting VSCode and see if the error persists?
@Adiyasa26 Are you using npm version or pnpm version?
I use pnpm version @matheralvs
Hi @Adiyasa26, that's usually a bug with the TS server, can you try restarting VSCode and see if the error persists?
Yes i already try restart the ts and restart vscode too @dan5py
+1 i have the same problem when i'am trying to build my code
Does this problem still occur? @Adiyasa26, @la-ruee-vers-le-bois
Ran into the same issue:
Should be fixed with the latest release 1.1.0