iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
813 stars 340 forks source link

"render function or template not defined in component: vue-tel-input" in Nuxt.js #170

Open leonelsanchesdasilva opened 4 years ago

leonelsanchesdasilva commented 4 years ago

Steps to simulate:

Error message:

Render function or template not defined in component: vue-tel-input

Notes:

iamstevendao commented 4 years ago

Do you have your code available somewhere? Everything is fine in the demo from codesandbox: https://codesandbox.io/s/vue-tel-input-nuxt-demo-1l93b

yofade3 commented 4 years ago

You have to put VueTelInput into brackets like this. import { VueTelInput } from 'vue-tel-input';

andreynazarov3 commented 4 years ago

component is not working on SSR, have to wrap it with <client-only>

clouedoc commented 4 years ago

@yofade3 thank you

elvinguti commented 3 years ago

Hey guys, it seems the component no longer works on newer versions in nuxt. I think it's happening since this PR: https://github.com/iamstevendao/vue-tel-input/pull/172

Forked with "vue-tel-input": "5.6.2": https://codesandbox.io/s/vue-tel-input-nuxt-demo-forked-z8n7p any idea on how to solve this?

thanks.