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

how to solve this problem(TypeError: h.transition is not a function)? #27

Closed
guoooofu opened this issue Sep 3, 2018 · 5 comments
Closed

Comments

@guoooofu
Copy link

guoooofu commented Sep 3, 2018

Hello David, I am going to use your plugin, but I am getting an error when using the demo you provided?

My code:

<template>
  <div>
    <tree class="tree" :data="tree" node-text="name" layoutType="circular"/>
  </div>
</template>

<script>
import { tree } from 'vued3tree'
export default {
  name: 'QsTags',
  components: {
    tree
  },
  data () {
    return {
      tree: {
        name: 'father',
        children: [
          {
            name: 'son1',
            children: [ { name: 'grandson' }, { name: 'grandson2' } ]
          }, {
            name: 'son2',
            children: [ { name: 'grandson3' }, { name: 'grandson4' } ]
          }
        ]
      }
    }
  }
}
</script>

<style lang="stylus">
.tree
  width 600px
  height 600px
</style>

Error message:

[Vue warn]: Error in mounted hook: "TypeError: h.transition is not a function"
found in
---> <D3Tree>
......

vue version: 2.5.17
vue-cli version: 3.0.0

@David-Desmaisons
Copy link
Owner

It doesn't seem to be linked to vue.d3.tree.
Do you have the stack trace of the exception/

@guoooofu
Copy link
Author

guoooofu commented Sep 3, 2018

@David-Desmaisons This problem has been solved, thank you very much for your help.

@guoooofu guoooofu closed this as completed Sep 3, 2018
@kapvik
Copy link

kapvik commented Oct 13, 2018

@guoooofu Hello, I have the same problem. Could you provide a solution to this problem, please?

@fontainio
Copy link

same issue too. I'm using yarn to install

@Lednick
Copy link

Lednick commented Mar 7, 2019

@guoooofu how you solved that issue?
Same issue

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

5 participants