Open leonelsanchesdasilva opened 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
You have to put VueTelInput
into brackets like this.
import { VueTelInput } from 'vue-tel-input';
component is not working on SSR, have to wrap it with <client-only>
@yofade3 thank you
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.
Steps to simulate:
Start a new Nuxt.js project;
Install
vue-tel-input
package, version 4.3.0;In
plugins
, configure the following:Add the plugin in
plugins
section (nuxt.config.js
):Add the component in some page:
Error message:
Notes: