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 #4

Open
qinfp123 opened this issue Jun 21, 2017 · 2 comments
Open

Unknown custom element #4

qinfp123 opened this issue Jun 21, 2017 · 2 comments

Comments

@qinfp123
Copy link

1.) first of all, I'm NPM install vue-simple-upload in my project
2.) introduce import FileUpload from'vue-simple-upload/dist/FileUpload'on a new Vue page, components: {FileUpload}
3.) after that, use in my template
4.) page console error, said Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

@saivarunk
Copy link
Owner

Try to register component like this

components: {
    'fileupload': FileUpload
  },

@qinfp123
Copy link
Author

1.)components: {
'fileupload': FileUpload
}
Registered in this way, the command line says "Module not, found:, Error:, Can't, resolve,'vue-simple-upload/dist/FileUpload'"

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

2 participants