Skip to content
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

Components can no longer be registered globally #85

Open
HeriLFIU opened this issue Sep 23, 2024 · 0 comments
Open

Components can no longer be registered globally #85

HeriLFIU opened this issue Sep 23, 2024 · 0 comments
Labels
epic_ui_towards_vue3 Changes to upgrade towards Vue.js 3

Comments

@HeriLFIU
Copy link
Collaborator

HeriLFIU commented Sep 23, 2024

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

Vue.component(component.name, httpVueLoader(url))

Documentation

https://v3-migration.vuejs.org/breaking-changes/global-api.html#global-api-application-instance

@HeriLFIU HeriLFIU added the epic_ui_towards_vue3 Changes to upgrade towards Vue.js 3 label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic_ui_towards_vue3 Changes to upgrade towards Vue.js 3
Projects
None yet
Development

No branches or pull requests

1 participant