vue-plotly icon indicating copy to clipboard operation
vue-plotly copied to clipboard

Does it work with Vue 3 ?

Open clementlefevre opened this issue 4 years ago • 5 comments

i could not make the example works on Vue 3 : "core-js": "^3.6.5", "vue": "^3.0.0-0", "vue-plotly": "^1.1.0"

runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Property "$createElement" was accessed during render but is not defined on instance. at <Plotly data= [{…}, __v_reactive: Proxy] layout= {title: "Plot update test", __v_reactive: Proxy} > at <App> and runtime-core.esm-bundler.js?5c40:496 TypeError: Cannot read property '_c' of undefined at Proxy.render (vue-plotly.umd.js?04d1:209952) at renderComponentRoot (runtime-core.esm-bundler.js?5c40:529) at componentEffect (runtime-core.esm-bundler.js?5c40:4214) at reactiveEffect (reactivity.esm-bundler.js?a1e9:42) at effect (reactivity.esm-bundler.js?a1e9:17) at setupRenderEffect (runtime-core.esm-bundler.js?5c40:4197) at mountComponent (runtime-core.esm-bundler.js?5c40:4155) at processComponent (runtime-core.esm-bundler.js?5c40:4111) at patch (runtime-core.esm-bundler.js?5c40:3761) at mountChildren (runtime-core.esm-bundler.js?5c40:3924)

Otherwise, great project, thanks again !

clementlefevre avatar Aug 25 '20 13:08 clementlefevre

yes I have the same issue looks like it not working on vue 3

talsibony avatar Oct 31 '21 09:10 talsibony

https://github.com/inys/covid-dashboard-js has an adaptation of the plotly component to vue3

"The sources for the plotly component where copied from David-Desmaisons/vue-plotly. Small adoptions were made since vue-plotly is not compatible with vue3 yet."

kfern avatar Nov 07 '21 19:11 kfern

Thanks for sharing this resource @kfern 🙏

MCYouks avatar Dec 06 '21 16:12 MCYouks

Well done!

talsibony avatar Dec 06 '21 16:12 talsibony

I am using Vite + Vue 3. Did anyone figure out a simple workaround?

MCYouks avatar Dec 06 '21 17:12 MCYouks