nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.32k stars 842 forks source link

[Vue 3] Can't get v-calendar to work in Vue 3 #860

Closed m4heshd closed 1 month ago

m4heshd commented 3 years ago

Trying to use this component in Vue 3 but ends up with a lot of errors. Versions:

{
   "v-calendar": "3.0.0-alpha.3",
   "vue": "^3.0.0"
}

Here's the error:

image

Strangely, whenever I import this globally and not even use as a component, my already existing (error free) components starts throwing errors.

image

None of these errors pop up if I get rid of v-calendar. It's so strange. Could be a build issue in the latest release?

Helcostr commented 3 years ago

I got v-calendar working with 3.0.11. So at least we know that 3.0.11 is working (and vue 3.0.0 isn't w/ alpha.3 Maybe?)

image

I am importing it as a component, and not as a global.

m4heshd commented 3 years ago

@Helcostr Thank you for the response. But I ended up writing my own date picker. Much more flexibility for me. Even though the update is a minor version, updating a major dependency for me at the moment is a little too expensive since I'm working on a massive project.