← Back to editor

Reproduced, not remembered

Mermaid error dictionary

Every Mermaid error message reproduced on version 11.17.2, with the cause, the source that fails, and corrected source that renders.

Each page quotes the message this build actually produced, explains what the parser was doing when it gave up, and shows source that renders. To repair a whole block at once, use the Mermaid repair tool.

Curly quotation marks do not quote a label

A word processor or chat client replaced straight quotes with typographic ones. Mermaid only recognises the straight double quote, so the label is still unquoted and any bracket inside it breaks the line.

A single dash is not a flowchart arrow

The flowchart link needs at least two dashes. A single dash followed by a greater-than sign is not a link token, so the parser sees two nodes with nothing between them.

An arrow with nothing after it

Every link needs a node on the right. A line that ends with an arrow leaves the statement unfinished, and the error points at the end of the line.

An edge label with no text

The two vertical bars open and close an edge label, so Mermaid expects text between them and finds the closing bar instead.

Merging a branch that was never created

A merge can only target a branch that exists at that point in the graph. Naming one that was never created stops the diagram with a message about the merge.