Open v1r0x opened 3 years ago
Tree
and Node
expected to registered in app
, locally registered components are not also available in subcomponents.
I also tried to register them globally, but that didn't work either. But I'll retry it later and report back.
I registered the components in my main script and it still didn't work to use them in my other component CustomTree.vue
. But when used in my main component (the one I create the app with const app = createApp(App);
) it works. Thanks for your help!
But is it possible to use your tree component in any other component than the main component in vue?
Version(if relevant): 6.0.1
Environment(if relevant):
Vue3
Code(if relevant):
Expected:
Tree should be rendered
Actual:
No tree is rendered DOM only shows this where the tree should be rendered