KenD
KenD

Reputation: 71

Unable to start Docusaurus 2 website because of unknown markdown errors

When starting yarn for my docusaurus 2 website, I see that the website is running on a local host (http://localhost:3000/). However, I noticed that there was an Unterminated JSX contents error. Despite the markdown being correct.

This is the error that appears:

  76 | </li>
  77 | </ul>
> 78 |     </MDXLayout>
     |                 ^
  79 |   )
  80 | };
  81 | MDXContent.isMDXComponent = true

Upvotes: 7

Views: 1563

Answers (1)

Yangshun Tay
Yangshun Tay

Reputation: 53169

It's hard for me to help without looking at the code. But I recommend looking for unterminated <img> or <br> tags. They are valid in HTML but not JSX. Your markup has to be JSX-compliant now that we are writing MDX (Markdown + JSX).

Upvotes: 8

Related Questions