0👍
Have a look at this question first:
Vue 'export default' vs 'new Vue'
I think you try to import your "component" so you need to provide:
export default {
components: {
myComponent
}
data () {
return {}
}
...
}
Your Syntax is for the root component and can not be used like
<my-component></my-component>
in the parent component
- [Vuejs]-Vue SSR: resolveComponent can only be used in render() or setup()
- [Vuejs]-Vue3 specify thumbnail image in meta tags
Source:stackexchange.com