Error reference / flowchart, graph

Parse error: got 'MINUS'

An edge uses a single-dash arrow (->) instead of Mermaid's two-dash flowchart arrow (-->).

Parse error on line 2:
flowchart TD    a -> b
------------------^
Expecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', 'LINK_ID', got 'MINUS'

Why this happens

Flowchart arrows need two dashes before the arrowhead: -->. A single dash followed by > isn't a recognized token, so the parser stops right after consuming the first -.

This is an easy typo to make coming from other diagram-as-code tools (Graphviz uses ->) or from muscle memory typing regular arrows.

How to fix it

Use --> for a standard flowchart arrow, -.-> for a dotted arrow, or ==> for a thick arrow. Sequence diagrams have their own arrow set (->>, -->>, -x) that's unrelated to flowchart arrows -- don't mix the two.

Broken

Fails to parse

Rendering preview...
flowchart TD
    a -> b

Fixed

Renders correctly

Rendering preview...
flowchart TD
    a --> b
Open fixed version in studio

More errors