vue-tel-input icon indicating copy to clipboard operation
vue-tel-input copied to clipboard

It doesn't work vue 3

Open tintin10q opened this issue 2 years ago • 3 comments

For me using the code in the docs

main.ts

const app = createApp(App);

import VueTelInput from 'vue-tel-input';
import 'vue-tel-input/dist/vue-tel-input.css';
app.use(VueTelInput)

It gives me [Vue warn]: Component is missing template or render function.

tintin10q avatar Apr 25 '22 10:04 tintin10q

I have 6.0.0-beta.7 in my package.json

tintin10q avatar Apr 25 '22 10:04 tintin10q

We're using 6.0.0-beta.7 as well and it's working for us with Vue3. Some of the options aren't working, but it loads and mostly works.

We're importing it locally within a single .vue component, not in the global config (we load components async)

import {VueTelInput} from 'vue-tel-input'
import 'vue-tel-input/dist/vue-tel-input.css';

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

adam1010 avatar May 07 '22 15:05 adam1010

Im running into the same error with 6.0.1 :/

jdalrymple avatar Jul 17 '22 17:07 jdalrymple

+1

KhaledOmara avatar Oct 13 '22 10:10 KhaledOmara

https://www.npmjs.com/package/vue3-tel-input-js

mrnasil avatar Dec 07 '22 13:12 mrnasil

Any update for this issue i have the same problem

Anas-shamia avatar Feb 02 '23 02:02 Anas-shamia

same problem

import { VueTelInput } from 'vue3-tel-input-js'

  <vue-tel-input
          v-model="phone"
          :class="disable ? '!border-bg !bg-bg' : ''"
          :disabled="disable"
          enabled-country-code="true"
          mode="international"
          :name="name"
          style-classes="telinput"
          :type="type"
          :v-bind="options"
          :value="inputValue"
          @blur="handleBlur"
          @input="handleChange"
          @validate="validate"
        ></vue-tel-input>

mrnasil avatar Feb 02 '23 09:02 mrnasil

try using import "vue-tel-input/dist/style.css"; It worked for me in vue3 with vue-tel-input version 8.1.0

sahiln1 avatar Apr 25 '23 10:04 sahiln1

the updated version import 'vue-tel-input/vue-tel-input.css';

femi-vue avatar Apr 29 '23 09:04 femi-vue