Next.js Discord

Discord Forum

Building markdown (.mdx) page prompted "createContext only works in Client Components" error

Unanswered
dr_kakapo posted this in #help-forum
Open in Discord
Avatar
I just
- initiated the project using the latest create-next-app CLI tool
- using app routing
- followed the official [doc here](https://nextjs.org/docs/app/building-your-application/configuring/mdx#nextmdx) to enable markdown page buildings.

But I couldn't spin up the dev server when adding the markdown stuff... I don't know how to debug this.
Image
Image

1 Reply

Avatar
mdx-components instead of mx-components