You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i m using shadcn calender component in to my project, but when i build my project following error occurs in my build, please go through the error and suggest me to resolve the issue i m facing.
src/components/ui/calendar.tsx:62:12 - error TS2322: Type '{ style?: CSSProperties | undefined; children?: ReactNode; className: string; }' is not assignable to type 'IconProps'.
Types of property 'children' are incompatible.
Type 'ReactNode' is not assignable to type 'undefined'.
Type 'null' is not assignable to type 'undefined'.
src/components/ui/calendar.tsx:65:12 - error TS2322: Type '{ style?: CSSProperties | undefined; children?: ReactNode; className: string; }' is not assignable to type 'IconProps'.
Types of property 'children' are incompatible.
Type 'ReactNode' is not assignable to type 'undefined'.
Type 'null' is not assignable to type 'undefined'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
i m using shadcn calender component in to my project, but when i build my project following error occurs in my build, please go through the error and suggest me to resolve the issue i m facing.
src/components/ui/calendar.tsx:62:12 - error TS2322: Type '{ style?: CSSProperties | undefined; children?: ReactNode; className: string; }' is not assignable to type 'IconProps'.
Types of property 'children' are incompatible.
Type 'ReactNode' is not assignable to type 'undefined'.
Type 'null' is not assignable to type 'undefined'.
62 <ChevronLeftIcon className={cn("h-4 w-4", className)} {...props} />
~~~~~~~~~~~~~~~
src/components/ui/calendar.tsx:65:12 - error TS2322: Type '{ style?: CSSProperties | undefined; children?: ReactNode; className: string; }' is not assignable to type 'IconProps'.
Types of property 'children' are incompatible.
Type 'ReactNode' is not assignable to type 'undefined'.
Type 'null' is not assignable to type 'undefined'.
65 <ChevronRightIcon className={cn("h-4 w-4", className)} {...props} />
~~~~~~~~~~~~~~~~
Found 2 errors.
Beta Was this translation helpful? Give feedback.
All reactions