RuntimeError: memory access out of bounds with rehype #677
Unanswered
SandroMaglione
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As reported before in #567 and #492, I am running in the same
memory access out of bounds
error.The suggested fix (here and here) directly use
getHighlighter
/codeToHtml
, but in my case I am using@shikijs/rehype
, so I am not sure the same solution works.The issue is hard to reproduce because it happens only when building on Vercel (locally it works) and only when building all the mdx files in my project (153 files, I tried with 127 files for example and it works).
This may also be related to a singleton issue with nextjs.
My setup is using
next-mdx-remote
(0.0.0-canary-20240321205249
) and@shikijs/rehype
(1.5.1
), with aCustomMDX
component as follows:This is the full stack trace:
Any idea on what can I try to fix the issue?
Beta Was this translation helpful? Give feedback.
All reactions