mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.48k stars 6.3k forks source link

Syntax error even with correct syntax #1753

Open chripu opened 3 years ago

chripu commented 3 years ago

Describe the bug Rendering a complex graph (flowchart) results in a "syntax error" even if the syntax seems correct.

To Reproduce Try rendering this file. test-graph-working.txt

Now add the following link: item-2491 -.->|RelationA| item-2501;

Try rendering the file (added the link above in line 2): test-graph-failing.txt

Expected behavior A rendered graph. Or a different error message if the graph is too complex to layout!?

danisztls commented 3 years ago

I miss the program informing the syntax error and showing the line with it instead of just "syntax error" when opening the output file. Although I might be an ignorant of the program features as I just learned it.

EricBuist commented 2 years ago

Having the same issue with Mermaid Confluence plugin. All I'm getting is "syntax error" without any information about what goes wrong. All I can do is tentatively remove lines from the file and copy/paste them somewhere, as I cannot find any syntax for comments. Without a declarative tool such as Mermaid, all I have to make diagrams are point and click tools such as draw.io and it becomes very tedious for me to make diagrams.

zachdaniel commented 2 years ago

Any updates here? I'm experiencing a similar issue. Some kind of information on the syntax error would be immensely helpful.

gherlein commented 1 year ago

Me too

afreisinger commented 1 year ago

Same issue

samelawrence commented 11 months ago

@chripu I am not able to render the chart from test-graph-working.txt in Notion. I get the error:

Unknown error: TypeError: Cannot set properties of undefined (setting 'order')
jgreywolf commented 9 months ago

Mermaid Chart will be reviewing this tomorrow as a possible candidate to include in a list of fixes we will be working on for the open source project