emiliorizzo / vue-d3-network

Vue component to graph networks using d3-force
https://emiliorizzo.github.io/vue-d3-network/
MIT License
514 stars 139 forks source link

support for Vue 3.0 #70

Open cricketthomas opened 4 years ago

cricketthomas commented 4 years ago

This is a great visualization with a ton of nice features. As Vue 3.0 is in beta, I am wondering if there are plans to upgrade the lib to vue 2.6.11+ and eventually Vue 3.0. After some testing, it doesn’t seem to work with Vue 3, https://jsfiddle.net/3oknz02v/1/show citing this error:

Cannot convert undefined or null to object
        at hasOwnProperty (<anonymous>)
        at Object.get (vue.global.js:10086)
        at Proxy.updateOptions (vue-d3-network.vue:227)
        at Proxy.created (vue-d3-network.vue:137)
        at callSyncHook (vue.global.js:9921)
        at applyOptions (vue.global.js:9873)
        at finishComponentSetup (vue.global.js:10467)
        at setupStatefulComponent (vue.global.js:10395)
        at setupComponent (vue.global.js:10335)
        at mountComponent (vue.global.js:8119)

I’ve been trying to upgrade the library but I can’t exactly pinpoint where this is occurring and it doesn’t appear that any of Vue 3’s breaking changes are present in this library. Do you think this is a vue 3 bug?

davay42 commented 3 years ago

Same problem

awallemo commented 3 years ago

Is d3-network compatible with Vue3? I am getting errors..

SkyloveQiu commented 3 years ago

same error here, no way to fix it.

michalhudecek commented 3 years ago

Any updates on this?

bhanu2217 commented 2 years ago

Any plans for Vue 3 support?

l-kotzur commented 1 year ago

If you arrived here, an alternative is package for vue 3 is: https://github.com/dash14/v-network-graph