mickasmt / astro-nomy

Differents pages and examples apps built with Astro v4.5, shadcn/ui & react js. Open Source.
https://astro-nomy.vercel.app
MIT License
384 stars 97 forks source link

sheet.tsx errors out #15

Closed frankjonen closed 4 months ago

frankjonen commented 4 months ago
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 4 months ago

This fixes it: npm i @radix-ui/react-dialog@1.0.4 --fixed