Open HeriLFIU opened 1 month ago
You can no longer globally register components within Vue3 (Register components from anywhere within the code) by utilizing Vue.component().
Vue.component()
It is possible within Vue3 to get an instance of the current app and use it to register a component.
https://github.com/kytos-ng/ui/blob/4c1d92bf69fced958eaaa22aff98612d7c87d2b6/src/components/kytos/napp/Toolbar.vue#L59
https://v3-migration.vuejs.org/breaking-changes/global-api.html#global-api-application-instance
Issue
You can no longer globally register components within Vue3 (Register components from anywhere within the code) by utilizing
Vue.component()
.Possible Fix
It is possible within Vue3 to get an instance of the current app and use it to register a component.
Example in Code
https://github.com/kytos-ng/ui/blob/4c1d92bf69fced958eaaa22aff98612d7c87d2b6/src/components/kytos/napp/Toolbar.vue#L59
Documentation
https://v3-migration.vuejs.org/breaking-changes/global-api.html#global-api-application-instance