Next.js Discord

Discord Forum

Rehype Pretty Code

Unanswered
Mini Satin posted this in #help-forum
Open in Discord
Mini SatinOP
i used Rehype Pretty Code for code highlighting as follow:

and i got :

Application error: a server-side exception has occurred (see the server logs for more information).

i tryed to use others syntax highlighters such as rehype-highlight,prismjs ecc... but Rehype Pretty Code just works better

3 Replies

So what is the error? Can you provide the logs
And normally we recommend using rehype-react or MDX instead of dangerouslySetInnerHTML
Mini SatinOP
i got this error:
Unknown root exit status.