vue-datepicker-next
vue-datepicker-next copied to clipboard
[Question] TypeError: Cannot read properties of undefined (reading 'getFullYear')
Hi, I am trying to migrate from vue2-datepicker to vue-datepicker-next. But I'm getting this following error:
TypeError: Cannot read properties of undefined (reading 'getFullYear')
Any idea why this might be occuring?
Vue-datepicker-next version: ^1.0.3 Vue version: 3.4.19 Browser: Chrome
Reproduction Link or Source Code
This is my code:
<template>
<date-picker
v-model="fromDatetime"
class="lg-datepicker"
type="date"
:clearable="false"
/>
</template>
<script>
import moment from "moment";
import DatePicker from "vue-datepicker-next";
export default {
name: "HistoryModal",
components: {
DatePicker,
},
data: (vm) => ({
fromDatetime: new Date()
}),
}
</script>
I think I'm seeing a similar issue, did you ever find a solution?
@ict I haven't yet :/ I opted for a different library...have you?
Hi, I'm having the same issue, did you manage to find a way to solve it??
@syahrulfahmi Hi, I haven't founded any solution for the problem above. I opted for this library instead: https://vue3datepicker.com/