vue-datepicker-next icon indicating copy to clipboard operation
vue-datepicker-next copied to clipboard

[Question] TypeError: Cannot read properties of undefined (reading 'getFullYear')

Open lilz-sofia opened this issue 1 year ago • 2 comments
trafficstars

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>

lilz-sofia avatar Jun 27 '24 06:06 lilz-sofia

I think I'm seeing a similar issue, did you ever find a solution?

ict avatar Aug 23 '24 14:08 ict

@ict I haven't yet :/ I opted for a different library...have you?

lilz-sofia avatar Sep 02 '24 00:09 lilz-sofia

Hi, I'm having the same issue, did you manage to find a way to solve it??

syahrulfahmi avatar Dec 17 '24 08:12 syahrulfahmi

@syahrulfahmi Hi, I haven't founded any solution for the problem above. I opted for this library instead: https://vue3datepicker.com/

sofianeherin21 avatar Dec 17 '24 08:12 sofianeherin21