dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
495 stars 44 forks source link

fix get started guide #15

Closed N1neTa1ls closed 2 years ago

N1neTa1ls commented 2 years ago

https://dash14.github.io/v-network-graph/getting-started.html it says what needs to be added to main.js here it is

browser_jsCiNDod4v

But this construction using in Vue 2 In Vue 3 need using this construction

import { createApp } from 'vue'
import App from './App.vue'
import VNetworkGraph from "v-network-graph"
import "v-network-graph/lib/style.css"

createApp(App).use(VNetworkGraph).mount('#app')  

it's my first time using Vue 3 and I didn't immediately understand why nothing works for me and what to do with it)) please fix this error and it would be great to sign the names of the files in which you want to make these imports (main.js) I think junior developers will appreciate it)

P.s. if an entry in main.js was used as in vue 2, does this mean that v-network-graph will work in vue 2 as well?

dash14 commented 2 years ago

Thank you for pointing this out. I have just fixed the description to the correct procedure. https://dash14.github.io/v-network-graph/getting-started.html#installation

I'm sorry for the inconvenience. (And, unfortunately, v-network-graph does not work with Vue2.)