Reputation: 71
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
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