Open lilz-sofia opened 5 months ago
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')
vue2-datepicker
vue-datepicker-next
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 am trying to migrate from
vue2-datepicker
tovue-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: