Comments (6)
I just tested out your file on "@mermaid-js/mermaid-cli": "^8.5.1-2"
on Ubuntu and it generated the correct diagram without any errors.
The error in the stacktrace (stateDiagram s1: In
) looks like mermaid-cli
was unable to read the line breaks in the file.
Try recreating diagram.mmd
in an different text editor on the same system then re-run your command. ./node_modules/.bin/mmdc -i diagram.mmd -o diagram.png
from mermaid-cli.
Still giving me an error. There is no hidden char at the file, look at the editor showing all the chars.
This editor is the VSCode. I've tried to use Vim as well, same problem.
from mermaid-cli.
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.
from mermaid-cli.
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)
npm install -g @mermaid-js/mermaid-cli ---> works (v8.+)
from mermaid-cli.
Cannot reproduce. No answer from the reporter.
from mermaid-cli.
I was able to reproduce this by using Node v16. Using Node v18 resolved this issue for me.
from mermaid-cli.
Related Issues (20)
- Error: net::ERR_ACCESS_DENIED on /@mermaid-js/mermaid-cli/dist/index.html HOT 3
- Error: Could not find Chromium (rev. 1108766) HOT 7
- Syntax Error in Mermaid-cli tool HOT 1
- background of edge label is white in pdf from flowchart
- Missing description in `-h, --help`
- Custom image output for .md file input HOT 1
- SyntaxError: The requested module `@mermaid-js/mermaid-cli` does not provide an export named 'run' (via SyntaxError) HOT 1
- Formatting of diagram is changed when exported to svg, pdf or png
- Could not find Chromium (rev. 1108766) HOT 9
- Upgrade mermaid to 10.9.0 (Latex support) HOT 2
- Write output to stdout HOT 1
- Document mermaid-cli release procedure
- mmdc not generating labels for SVG outputs HOT 2
- improve performance of markdown file processing HOT 2
- Version bump happens after tagging HOT 3
- Trying to use browserUrl or browserWSEndpoint without success HOT 2
- $c4ShapeInRow not counting per row
- No diagram found in mardown file when using whitespace in definition.
- Exported png files are very low resolution HOT 1
- SVG is not displayed corectly in Gimp, Pinta, display or Image viewer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mermaid-cli.