-
Notifications
You must be signed in to change notification settings - Fork 54
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
Failed to mount component: template or render function not defined. #32
Comments
I got that error when I imported and added this component directly to my view component. However, it worked properly when I instead added it globally to my app's main.js. It should work both ways, but this workaround may help you. |
@objcow I'm facing the same issue here and it is not working even with global registration.
Is this how you did it? |
I did:
|
I'm also having the same message "Failed to mount component: template or render function not defined." when imported and added this component directly to my view component. Yes global installation works (with Vue.use(ImageUploader);) but that creates a global instance and in my scenario, when I have couple of vue components with ImageUploader on the same page, images are uploaded into first instance only. |
Hi @vsirghii (cc @objcow, @wanderleypanosso, @VictorOnwukwe) Sorry about this. I somehow messed up how Vue CLI builds for library as target. The new 2.3 release should help. With this version it is possible to use both initalising as a global plugin (using export default {
components: {
ImageUploader
},
// ...
} |
Awesome Svale .That's a great news. You guys are doing really good job here. |
It keeps giving the error "Failed to mount component: template or render function not defined."
And I have all dependencies required to load the component.
The text was updated successfully, but these errors were encountered: