sheet.tsx errors out
frankjonen opened this issue · 1 comments
frankjonen commented
src/components/ui/sheet.tsx:18:26 - error ts(2322): Type '{ children?: ReactNode; container?: HTMLElement | null | undefined; forceMount?: true | undefined; className: string; }' is not assignable to type 'IntrinsicAttributes & DialogPortalProps'.
Property 'className' does not exist on type 'IntrinsicAttributes & DialogPortalProps'.
18 <SheetPrimitive.Portal className={cn(className)} {...props} />
~~~~~~~~~
src/components/ui/sheet.tsx:15:3 - error ts(2339): Property 'className' does not exist on type 'DialogPortalProps'.
15 className,
frankjonen commented
This fixes it: npm i @radix-ui/react-dialog@1.0.4 --fixed