ui icon indicating copy to clipboard operation
ui copied to clipboard

Button Not support for react "@types/react" 18.2.22

Open cecep31 opened this issue 2 years ago • 5 comments

Type '{ disabled?: boolean | undefined; form?: string | undefined; formAction?: string | ((formData: FormData) => void) | undefined; formEncType?: string | undefined; formMethod?: string | undefined; ... 272 more ...; ref: ForwardedRef<...>; }' is not assignable to type 'SlotProps'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/home/pilput/coding/typescript/pilput-dev/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode'. Type 'ReactElement<any, string | JSXElementConstructor>' is not assignable to type 'ReactNode'. Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor>' but required in type 'ReactPortal'.

image

cecep31 avatar Sep 20 '23 14:09 cecep31

same issue here

WebbTseng avatar Nov 26 '23 03:11 WebbTseng

same

Wolframko avatar Dec 16 '23 13:12 Wolframko

Any news on this?

LeAlencar avatar Dec 24 '23 20:12 LeAlencar

Thank you for surfacing this issue. As a newcomer to Shadcn, I've been grappling with a straightforward button integration, and it's been quite frustrating.

It appears that discussion on this matter has gone stale. Could we possibly get some insight on this issue? Your help would be greatly appreciated. @shadcn

shihfu avatar Dec 31 '23 20:12 shihfu

Solved:

  • https://github.com/shadcn-ui/ui/issues/1978#issuecomment-1873574838

ImBIOS avatar Jan 02 '24 02:01 ImBIOS

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Feb 27 '24 23:02 shadcn