Closed Henco1 closed 5 days ago
i have same problem :/
The issue is raised here in the v-calendar repo. But no updates yet. https://github.com/nathanreyes/v-calendar/issues/1498
I'm seeing the same error, though it doesn't break anything in the UI for me
Yeah, issue within v-calendar dep which also seems to be problematic one regarding the updates (last update was from last year)
Did anyone figure it out ?
Did anyone figure it out ?
You can downgrade v-calendar to 3.0, or vue before 3.5
I ran into the same issue using the example from Nuxt UI DateRangePicker
. If you open the console on this page and select a start and end date manually, you will see the error: https://ui.nuxt.com/components/date-picker#daterangepicker
Following silenced it for me:
<VCalendarDatePicker
...
@dayclick="
(_, event) => {
event.target.blur();
}
" />
Thanks to @akorajac
Even on their website so)) Is there a solution?
we have the following error in sentry: TypeError: undefined is not an object (evaluating 'r[0].dayIndex') at DateRangeContext.render (../node_modules/v-calendar/dist/es/index.js:3044:33)
I run into the same issue, this is my stacktrace.
runtime-core.esm-bundler.js?v=79afc713:266 Uncaught TypeError: Cannot read properties of undefined (reading 'dayIndex') at DateRangeContext.render (v-calendar.js?v=79afc713:4740:35) at v-calendar.js?v=79afc713:6967:13 at Array.forEach (<anonymous>) at v-calendar.js?v=79afc713:6966:19 at Array.forEach (<anonymous>) at ComputedRefImpl.fn (v-calendar.js?v=79afc713:6965:22) at refreshComputed (reactivity.esm-bundler.js?v=79afc713:334:29) at isDirty (reactivity.esm-bundler.js?v=79afc713:304:68) at refreshComputed (reactivity.esm-bundler.js?v=79afc713:324:65) at isDirty (reactivity.esm-bundler.js?v=79afc713:304:68)
Is there any workaround / solution?
Environment
macOS 14.2.1 (23C71) node.js v20.9.0 vue v3.5.6. nuxt v3.13.2 @nuxt/ui v2.18.4 @nuxt/ui-pro v1.4.2 date-fns 4.0.0 v-calendar v3.1.2
Version
2.18.4
Reproduction
const props = defineProps({ modelValue: { type: [Date, Object] as PropType<DatePickerDate | DatePickerRangeObject | null>, default: null } })
const emit = defineEmits(['update:model-value', 'close'])
const date = computed({ get: () => props.modelValue, set: (value) => { emit('update:model-value', value) emit('close') } })
const attrs = { transparent: true, borderless: true, color: 'primary', 'is-dark': { selector: 'html', darkClass: 'dark' }, 'first-day-of-week': 2, }
Description
Following the daterange section here (https://ui.nuxt.com/components/date-picker#daterangepicker) exactly and then selecting a custom start and end date results in this error:
Additional context
No response
Logs
No response