- An unclosed component tag, such as a
<Note>without a matching</Note>. - Malformed JSX in the page body, such as an unclosed brace in an expression.
- Frontmatter that isn’t valid YAML, such as inconsistent indentation or an unclosed quote.
Fix the error manually
- Open the affected page in the editor.
- Switch to source mode with Cmd + Shift + S (macOS) or Ctrl + Shift + S (Windows). Source mode highlights the invalid MDX and shows the parsing error.
- Fix the syntax. Once the page parses, the error clears and the Publish button becomes available again.
Fix the error with the agent
- Open the editor panel.
- Prompt the agent to fix any invalid MDX or frontmatter YAML.