I struggle to understand the component and template system in VueJS. I downloaded the VuetifyJS PWA example template and tried to replace the complete content of Hello.vue with the content of the VuetifyJS google-contacts.vue example template.
I got this error message after npm run dev on localhost:8080:
> vue.esm.js?65d7:578 [Vue warn]: Failed to mount component: template or render function not defined.
found in
---> <Hello> at /home/a/my-project/src/components/Hello.vue
<App> at /home/a/my-project/src/App.vue
<Root>
Why is it not possible to just replace the <template></template> content and what do I need to change to use the google-contacts.vue template content instead of the Hello.vue content?
templateproperty of a component, and 2) exporting individual components and then importing them later. It sounds like the second is what you're aiming for and that you're doing it incorrectly. Unfortunately we can't determine whether or not this is the case. Please provide code snippets so that we may have a clearer picture of your problem.<hello> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <App> at /home/a/my-project/src/App.vue <Root>import Hello from '~/components/hello.vue' Vue.component('Hello', Hello);As in the second answer to that question