Why this happens
classDiagram relationship arrows are two characters plus a symbol: --|> for inheritance, --* for composition, --o for aggregation, ..> for dependency. A single dash before the symbol (-|> instead of --|>) isn't a recognized arrow, so the parser fails right after it.
How to fix it
Use the full two-character line: --|> for inheritance/realization, --* for composition, --o for aggregation, --> for association, ..> for dependency, ..|> for interface realization.