Specify @internationalized/date version when installing Calendar components #1208
Labels
status: under review
Further discussion is needed to determine this issue's scope and/or implementation
type: documentation
A change or addition to the documentation
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.The text was updated successfully, but these errors were encountered: