Why this happens
Unlike flowcharts, erDiagram relationships aren't plain arrows -- every relationship must state cardinality on both ends using crow's-foot notation: ||, o|, }o, }|, and so on. A bare --- or --> is not valid syntax for this diagram type.
How to fix it
Pick the cardinality that matches your data model. A common one-to-many relationship reads CUSTOMER ||--o{ ORDER : places (exactly one customer, zero or more orders). Reference: || exactly one, o| zero or one, }o zero or more, }| one or more.