Orlandster / vue-typed-js

Typed.js integration for vue.js. Create a typing animation.
http://www.mattboldt.com/demos/typed-js/
MIT License
478 stars 38 forks source link

Unknown custom element: <vue-typed-js> #39

Open GeorgeFlorian opened 4 years ago

GeorgeFlorian commented 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.

robertnicjoo commented 3 years ago

@GeorgeFlorian

Use import VueTypedJs from 'vue-typed-js' instead of import { VueTypedJs } from 'vue-typed-js' in your main js file.

juliancalderone commented 2 years ago

Works for me with nuxt!