Open GeorgeFlorian opened 4 years ago
I'm trying to use vue-typed-js but I get the following error: "Unknown custom element: ".
I've installed it via npm install --save vue-typed-js.
Inside the component in which I want to use Typed-js I've put
import Vue from 'vue'; import { VueTypedJs } from 'vue-typed-js'; Vue.use(VueTypedJs);
inside the script tag and:
<vue-typed-js :strings="['First text', 'Second Text']"> <h1 class="typing"></h1> </vue-typed-js>
inside the template tag.
But it doesn't work.
Thank you.
@GeorgeFlorian
Use import VueTypedJs from 'vue-typed-js' instead of import { VueTypedJs } from 'vue-typed-js' in your main js file.
import VueTypedJs from 'vue-typed-js'
import { VueTypedJs } from 'vue-typed-js'
Works for me with nuxt!
I'm trying to use vue-typed-js but I get the following error: "Unknown custom element:".
I've installed it via npm install --save vue-typed-js.
Inside the component in which I want to use Typed-js I've put
inside the script tag and:
inside the template tag.
But it doesn't work.
Thank you.