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

Error on simple graph #192

Closed
zhum opened this issue Jul 23, 2015 · 2 comments
Closed

Error on simple graph #192

zhum opened this issue Jul 23, 2015 · 2 comments

Comments

@zhum
Copy link

zhum commented Jul 23, 2015

I try to render this simple graph and get this error: mermaid.min.js:28160 Uncaught TypeError: Cannot read property '0' of undefined.
What is wrong?

graph LR;
  head(head) --> file(file);
  file(file) --> just_link(just_link);
  file(file) ==> job_234(job_234);
  just_link(just_link) ==> joiner(joiner);
  joiner(joiner) --> csv(csv);
  job_234(job_234) --> job2_234(job2_234);

@knsv
Copy link
Collaborator

knsv commented Jul 23, 2015

Turns out that the character v is also a keyword as in direction down which causes a syntax error in this graph. v cannot be used in ids. Will fix that.

@zhum
Copy link
Author

zhum commented Jul 24, 2015

Thank you! Works now!

@zhum zhum closed this as completed Jul 24, 2015
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

2 participants