Replies: 1 comment 1 reply
-
I've got the same problem |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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