Closed lorenzode closed 2 years ago
Assigned it to SWC transforms to verify this case in SWC. If you want to change Babel parsing please report an issue on the Babel repository 🙏
I think the issue lies with using next-mdx-remote. Closing...
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Run
next info
(available from version 12.0.8 and up)No response
What version of Next.js are you using?
11.1.2
What version of Node.js are you using?
14.17.6
What browser are you using?
Latest Chrome
What operating system are you using?
Ubuntu 20.04
How are you deploying your application?
Gitlab pages
Describe the Bug
I have example code embedded in
<code>
tags in my content. This part in my contents makes rendering of that page in NextJs fail:<code>{ "data": [</code>
Expected Behavior
Babel should ignore the JSON fragments in the
<code>
blocks in serializedContents.Other pages without JSON example in the content are rendering fine.
To Reproduce
This happens both on next start and next build && next export.