Building markdown (.mdx) page prompted "createContext only works in Client Components" error
Unanswered
dr_kakapo posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/876967226366918656/0a7fabe68b846c5a359c81eb470405ff.webp?size=256)
dr_kakapoOP
I just
- initiated the project using the latest
- using
- 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.
- 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](https://cdn.discordapp.com/attachments/1183931266886815814/1183931267109109771/image.png?ex=658a20ea&is=6577abea&hm=7b78681871d047b94f844e94bdca4ce3035976a36e00f5049071183ccf3b663a&)
![Image](https://cdn.discordapp.com/attachments/1183931266886815814/1183931267432063057/image.png?ex=658a20ea&is=6577abea&hm=90134dc5e83766f3870afa0db052772fc5e7c4c377423aac8fb93e951dcccfea&)
1 Reply
![Avatar](https://cdn.discordapp.com/avatars/194128415954173952/708a8637ada505b6b7a85972807d9dca.webp?size=256)
Alfonsus Ardani
mdx-components instead of mx-components