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

Add as local component #4

Closed
CydGoblin opened this issue Dec 11, 2018 · 6 comments
Closed

Add as local component #4

CydGoblin opened this issue Dec 11, 2018 · 6 comments

Comments

@CydGoblin
Copy link

Can this be added as a local component?

@Orlandster
Copy link
Owner

Orlandster commented Jan 17, 2019

@Turqueso Yeah, sure. You can basically just import it into your component and register it via components prop:

import VueTypedJs from 'vue-typed-js'

new Vue({ 
 el: '#app',
 components: { 'vue-typed': VueTypedJs  }
})

Something like this should work.

@deniseileen
Copy link

Hey, so I'm on Vue CLI 3, and found in order to add it as a local component, I actually had to import it like this:

import VueTypedJs from 'vue-typed-js/src/components/VueTypedJs.vue'

Otherwise, if I was importing it in the standard way:

import VueTypedJs from 'vue-typed-js', I'd get the following error message:
[Vue warn]: Failed to mount component: template or render function not defined.

Not sure if this coming from the way my project is set up, but wanted to put it out there in case anyone else is running into the same issue.

@codingsett
Copy link

@denisewalter Thanks...i had the same issue

@intositeme
Copy link

Same issue here

@markojak
Copy link

markojak commented Feb 7, 2020

Also had this issue - Is this package even maintained anymore?

@roozbeheslami
Copy link

You should import it into your component like this:
var VueTypedJs = require("vue-typed-js").VueTypedJs;

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

7 participants