LouisMazel / vue-phone-number-input

A phone number input made with Vue JS (format & valid phone number)

Home Page:https://louismazel.github.io/vue-phone-number-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_c') (Vuejs 3)

hazem-taha opened this issue · comments

Hello,

My app is (Inertia + Vuejs 3 composition API)

import VuePhoneNumberInput from "vue-phone-number-input";`

export default defineComponent({
  components: {
    VuePhoneNumberInput,
  },
...
...

<VuePhoneNumberInput v-model="form.phone" />

Getting the below error when trying to load the page containing the phone element..

image

commented

Hi @hazem-taha,

This plugin works only with Vue2

I will release soon the Vue3 version on maz-ui

Stay tuned

Hi @LouisMazel , thanks for a great library! Do you perhaps have a timeframe on when you will release for vue3?

this bug still exist ! any solution ?

commented

Hi,

I'm currently working on the vue 3 version, is still in beta for the moment :

Getting Started: https://louismazel.github.io/maz-ui-3/guide/getting-started.html
MazPhoneNumberInput: https://louismazel.github.io/maz-ui-3/components/maz-phone-number-input.html

Be careful, so many things can change in the futur

commented

Let me know if you found any bugs 😊

https://louismazel.github.io/maz-ui-3/components/maz-phone-number-input.html#feature-list
i have tried this component and here's what i've got
MazPhoneNumberInput.js?93d8:15 GET http://localhost:8100/chevron-down.svg 404 (Not Found)

commented

@hathemi
Fixed in version 3.0.0-beta.20