Why this happens
stateDiagram-v2 transitions require the two-dash arrow, State1 --> State2, same as flowcharts. A single dash isn't a recognized transition token, so the parser stops right after it.
This usually happens when copying a relationship from a different diagram type, or typing quickly and dropping a character.
How to fix it
Use --> between every pair of states, including transitions into and out of [*] (the start/end marker).