Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lilz-sofia opened this issue Jun 27, 2024 · 4 comments

Comments

@lilz-sofia
Copy link

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>

@ict
Copy link

ict commented Aug 23, 2024

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

@lilz-sofia
Copy link
Author

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

@syahrulfahmi
Copy link

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

@sofianeherin21
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants