guastallaigor / vue-paycard

Credit card component made with Vue.js (works with Vue 2 & 3)
https://vue-paycard.netlify.app
MIT License
106 stars 23 forks source link

Vue 3 support #13

Closed diegosanw closed 2 years ago

diegosanw commented 3 years ago

Hi! I'm working on a Vue3 project and would like to use this awesome component.

It doesn't seem to be working completely fine. The card number is not shown, the rest of the fields are shown ok. Have anyone else tried it with Vue3? Any ideas what may be failing?

guastallaigor commented 3 years ago

Hello @ds-perfit Sorry about the delay.

Thank you for reporting. I think it's fair to say that currently vue-paycard unfortunately doesn't support Vue 3 yet. I don't know much about Vue 3, but I know that some of the things were changed (e.g. beforeDestroy to beforeUnmount) and those things can cause bugs in this component. I will need to look into it to see if I can make Vue 3 compatible without hurting Vue 2 users. If I manage to fix it, I'll let you know here.

guastallaigor commented 3 years ago

ref https://github.com/vuejs/rollup-plugin-vue/issues/427

guastallaigor commented 2 years ago

Now with Vue 3 support! New release later this week! ref #36