Unable to start Docusaurus 2 website because of unknown markdown errors

Viewed 643

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
1 Answers

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).

Related