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
[Vue warn]: Unknown custom element: <vaadin-grid> #985
Comments
Any update on this issue? I'm having the identical issue. |
Dear @tmpjr , Could you please provide us with real live example, so we will be able to take a precise look on it, debug and fix it? |
I'll do my best. It's difficult on CodePen/Fiddle to reproduce since you need webpack, npm, and .vue files to reproduce. I've not been able to get an example working at all in codepen thus far. |
Hi @YuriyVaadin I was unable to get anything working on codepen/fiddle or whatever since a lot of this requires webpack and is just too complex for live editors. I did, however, create a fresh repository that you can pull down and just run a few commands to try it out. https://github.com/tmpjr/vue-vaadin-demo Thanks! |
Dear @tmpjr Unfortunately our VueJS guru is out of the office. I have tried to build and run the app, but I am facing the framework related errors and issues. Can I ask you to provide me with fully functional example and detailed instructions how to use it? I am sorry for this inconveniences, but for the current moment it is not possible to deepen my knowledge into VueJS. |
This warning is thrown because Vue doesn't know which component to map the Since the Vaadin Grid is a custom element and not a Vue component, you can instruct Vue to ignore this element tag using the
|
Thanks, @kunalkundaje That gets rid of the warning but I just see an empty grid. At this point we've moved onto another datagrid solution. |
The original documentation article for Vue integration is no longer on our main website, since it’s not something we officially support at the moment. The article is now moved to https://github.com/vaadin/vaadin-core/wiki/Vue.js-Integration Please contribute there if you have any additions and/or corrections to the content. Our team at Vaadin doesn’t really have any real experience with Vue, so all help is appreciated! |
For anyone interesting in using Vaadin components in Vue, we now have a tutorial: Also, with the Vue CLI version 3 and above, there is no more warning mentioned above. |
@kunalkundaje @web-padawan Wait, so the official way of mitigating this Warning is not to register the components but to disable the warning? |
Hi all,
<script src="static/bower_components/webcomponentsjs/webcomponents-lite.js"></script>I followed this example:
https://vaadin.com/vaadin-documentation-portlet/elements/integrations/integrations-vuejs.html
installed and imported vaadin-grid libaray into my vue project, and in my index.html I put this in the head section as required by the above example:
In the dataview.vue file, I have this template:
But I got this error:
[Vue warn]: Unknown custom element: "vaadin-grid"
did you register the component correctly? For recursive components, make sure to provide the "name" option.
I am begging for help.
Thanks very much
The text was updated successfully, but these errors were encountered: