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

nuxt3 new verison

Open Ischafak opened this issue 2 years ago • 11 comments

i have upgraded my nuxt to 3.8.1 and i am using

"vue-tel-input": "^8.1.4",

image

this is my plugin

when i try to call vue-tel-input instantly i get 404

[Vue warn]: resolveDirective can only be used in render() or setup().

i get this error but i dont know the issue is connected with this

Ischafak avatar Nov 15 '23 11:11 Ischafak

Hi @Ischafak i got the same issue, i see you closed that issue, what was your solution please?

dukenst2006 avatar Dec 06 '23 14:12 dukenst2006

FWIW:

Hello,

I got the same issue appeared randomly got in a vue3/quasar project that was working perfectly fine.. and wasted one hour digging into it.

@dukenst2006 I was using vue 3.3.8 as pinned, after upgrading 3.3.13 it magically works so I imagine some suspect low level behaviour.

NeoN0x avatar Dec 21 '23 22:12 NeoN0x

yes it is a weird bug for example i am again getting this error for nuxt 3.9.0

i found a solution actually but i dont know is it good or not

when. i change this plugins name to 01.vtinput.client.ts the problem is gone. 01 is for load order and client is for client side import

i want to ask devs to this is it good or bad thing to do or is there a better way to do it?

Ischafak avatar Jan 09 '24 13:01 Ischafak

@Ischafak You can use this plugin by this

import { VueTelInput } from "vue-tel-input";

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.component("VueTelInput", VueTelInput);
});

Frallen avatar Jan 16 '24 10:01 Frallen

@Ischafak You can use this plugin by this

import { VueTelInput } from "vue-tel-input";

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.component("VueTelInput", VueTelInput);
});

just remember to also import it's css

import 'vue-tel-input/vue-tel-input.css';

JatinBrainybuzz avatar Jul 26 '24 10:07 JatinBrainybuzz