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

TypeError: Cannot set property 'order' of undefined #3

Open
mmacfadden opened this issue Apr 5, 2018 · 5 comments
Open

TypeError: Cannot set property 'order' of undefined #3

mmacfadden opened this issue Apr 5, 2018 · 5 comments

Comments

@mmacfadden
Copy link

Not sure if you have any interest in this. I am cross posting this from the main dagre repo. Basically I have a graph that when laid out throws the following error:

TypeError: Cannot set property 'order' of undefined
    at ./node_modules/dagre-layout/dist/dagre-layout.core.js:1:16798
    at arrayEach (./node_modules/dagre-layout/node_modules/lodash/lodash.js:508:11)
    at Function.forEach (./node_modules/dagre-layout/node_modules/lodash/lodash.js:9334:14)
    at./node_modules/dagre-layout/dist/dagre-layout.core.js:1:16759
    at arrayEach (./node_modules/dagre-layout/node_modules/lodash/lodash.js:508:11)
    at Function.forEach (.source/node_modules/dagre-layout/node_modules/lodash/lodash.js:9334:14)
    at v (./node_modules/dagre-layout/dist/dagre-layout.core.js:1:16727)
    at t.default (./node_modules/dagre-layout/dist/dagre-layout.core.js:1:17145)
    at ./node_modules/dagre-layout/dist/dagre-layout.core.js:1:30614
    at w (./dagre-layout/dist/dagre-layout.core.js:1:3619)

I was able to replicate this, in this fork also. Here is the relevant gist.

https://gist.github.com/mmacfadden/2c923a6c7209308745296d489289f316

Here is the Dagre issue: dagrejs/dagre#234

@tylerlong
Copy link
Contributor

Can you reproduce the issue here: https://mermaidjs.github.io/mermaid-live-editor/ ?

If so, please post the link back and I will definitely take a look.

@frozenL
Copy link

frozenL commented Apr 28, 2018

+1 here. Would having too many nodes and edges be the reason? My data had 1k+ nodes..

@mmacfadden
Copy link
Author

@tylerlong I will try to reproduce it there. @frozenL I was able to reproduce it in a graph with about 15 nodes.

@mmacfadden
Copy link
Author

@josejulio I was using dagre itself and was able to reproduce directly in dagre. I cross posted the issue over here since some development was going on in this port as well.

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

4 participants