Replies: 1 comment
-
from my side, i didn't see this error. The difference may be the version of typescript / node. Both is lower than the reported one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m encountering an issue with the @nextui-org/alert component from NextUI. Although I’m using version 2.2.8 as specified on npm and confirmed in my local package.json, some props outlined in the official documentation at nextui.org/docs/components/alert appear to be unsupported.
At least hideIconWrapper and icon props do not work for me.
When attempting to use the following props:
<Alert hideIconWrapper icon={<UserIcon />} color="secondary" description="Your description here" title="Alert Title" variant="solid" />
I receive the following TypeScript error:
Type { hideIconWrapper: true; color: "secondary"; description: string; title: string; variant: string; } is not assignable to type IntrinsicAttributes & Omit<PrimitivePropsWithAs<BaseAlertProps, "div">, "ref"> & RefAttributes<HTMLDivElement> & Omit<...> Property 'hideIconWrapper' does not exist on type IntrinsicAttributes & Omit<PrimitivePropsWithAs<BaseAlertProps, "div">, "ref"> & RefAttributes<HTMLDivElement> & Omit<...>
Environment
• NextUI Version: 2.2.8
• Next.js 15.1.3
• React Version: 18.3.1
• TypeScript Version: 5.4.5
• Node.js Version: 22.10.0
Beta Was this translation helpful? Give feedback.
All reactions