-
Notifications
You must be signed in to change notification settings - Fork 248
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
Failing to generate an image from the state diagram #4
Comments
I just tested out your file on The error in the stacktrace ( |
Hey @diegobernardes, I have tried to reproduce the error you have reported without any luck. From the error message it seems clear, that there is something wrong with your input file. Anyhow, I have created a branch for your case. You can find your state file here: https://github.com/MindaugasLaganeckas/mermaid-cli/blob/issue/4/test/issue-4.mmd and the diagram, generated by mermaid-cli, here: https://github.com/MindaugasLaganeckas/mermaid-cli/suites/844280879/artifacts/9556201. The filename to look for is issue-4.mmd.svg. You are welcome to download the file issue-4.mmd AS IS, install the newest mermaid-cli (8.5.3) and generate the diagram yourself. |
Got this (see attached picture) Check this : #503 The old repo (v0.5.1) is not functional, use the new repo (v8.+). It's confusing, but 'mermaidjs' is not the same as 'mermaid-js'. npm install -g mermaid.cli ---> fails (v0.5.1) |
Cannot reproduce. No answer from the reporter. |
I was able to reproduce this by using Node v16. Using Node v18 resolved this issue for me. |
This is the error:
The mermaid file:
But it's working fine at the web editor:
The text was updated successfully, but these errors were encountered: