You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
I couldn't make prismjs work on the new app dir on my project.
To be sure, it was not something with my project I took your project and migrate it to the Next 13
npm i next@latest react@latest react-dom @latest
then I changed
next.config.js
then I moved
pages/[slug].tsx
intoapp/[slug]/page.tsx
and updated the file:Still not working, even after cleaning
node_modules
and installing all over again.If I try to run it as a RSC I have this error:
If I add
"use client"
to try to run it as a client component (to match the behaviour of thepages
dir), then I have this error:Super weird. And to be honest parsing markdown and html to add code highlighting is really a task that I would really avoid to execute on the client.
Do you guys at Vercel have any idea how to make this work? 🙏
My best regards
The text was updated successfully, but these errors were encountered: