Specify @internationalized/date version when installing Calendar components
Opened this issue · 1 comments
Change Type
Correction
Proposed Changes
Currently, under https://www.shadcn-svelte.com/docs/components/calendar#installation it is suggested to install @internationalized/date using npm install bits-ui @internationalized/date
.
This can cause type conflicts when using type such as DateValue
.
bits-ui
includes @internationalized/date as a dependency pinned to a version.
Installing @internationalized/date as currently described in the docs causes type mismatches when working with the Calendar
component with classes from @internationalized/date.
I had to run yarn add @internationalized/date@^3.5.1
to fix my type errors.
I think we'll need to make this an optional peer dependency of Bits UI but will defer to someone smarter than me at this @AdrianGonz97