David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
877 stars 136 forks source link

error h.transition #31

Closed fontainio closed 6 years ago

fontainio commented 6 years ago

Hi i know a previous ticket was opened about this, but was close without explanation. I have the same issue. i'm using yarn.

screen shot 2018-10-14 at 1 21 19 pm

fontainio commented 6 years ago

you can inspect the error here https://fontain.io/tree

fontainio commented 6 years ago
<template>
  <div id="container">
  <tree :data="tree" :node-text="name" layoutType="circular" class="tree"></tree></div>
</template>

<script>
import {tree} from 'vued3tree'

export default {
  components: {
    tree
  },
  data() {
    return {
      tree: {
        name: "father",
        children:[{
          name: "son1",
          children:[ {name: "grandson"}, {name: "grandson2"}]
        },{
          name: "son2",
          children:[ {name: "grandson3"}, {name: "grandson4"}]
        }]
      }
    }
  }
}

</script>

<style >
.tree {
    width: 100%;
    height: 100%;
}
.container{
    width: 500px;
    height: 500px;;
}
</style>
David-Desmaisons commented 6 years ago

Could you share what was the problem to avoid someone else open a similar issue later, and so on?

jjstobbe commented 6 years ago

I had the same problem. Seems to be some sort of yarn issue. I installed it normally using npm install and re-ran my project and it worked fine. For whatever reason, just using yarn add vued3tree doesn't work.