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

Support for Vue3 #45

Open
vrandeshbandikatti opened this issue Jun 1, 2022 · 6 comments
Open

Support for Vue3 #45

vrandeshbandikatti opened this issue Jun 1, 2022 · 6 comments

Comments

@vrandeshbandikatti
Copy link

This library does not work with Vue3.

Desperate need for support on vue3 as many are migrating from Vue2 to Vue3

@mikemrg17
Copy link

mikemrg17 commented Jun 14, 2022

I wish I had read your comment earlier, I have been struggling with this library all day.

@mokadevcloud
Copy link

Hello, any chance Vue 3 support will be forthcoming? Thanks!

@tall1
Copy link

tall1 commented May 11, 2023

Hi, are there any changes since last post here? Is there support for Vue3?

@EWChina999
Copy link

Is there support for Vue3?

@hhaensel
Copy link

hhaensel commented Feb 15, 2024

There's quite an easy workaround to get it working. Before loading "vueplotly.min.js" execute the following script:

window.vueLegacyPlugins = {}
Vue.component = function(componentname, component) {
    window.vueLegacyComponents[componentname] = component
}

Then in your vue app add the following line after creating your app:

app = Vue.createApp()
// legacy component support
app.component("plotly", vueLegacyComponents.plotly)

@Tylorgonza
Copy link

There's quite an easy workaround to get it working. Before loading "vueplotly.min.js" execute the following script:

window.vueLegacyPlugins = {}
Vue.component = function(componentname, component) {
    window.vueLegacyComponents[componentname] = component
}

Hello, at what level of the code does this part go in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants