Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GeorgeFlorian opened this issue Oct 27, 2020 · 2 comments
Open

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

GeorgeFlorian opened this issue Oct 27, 2020 · 2 comments

Comments

@GeorgeFlorian
Copy link

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
Copy link

@GeorgeFlorian

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

@juliancalderone
Copy link

Works for me with nuxt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants