MDX in app router causes - "error createContext only works in Client Components" #50110
Closed
1 task done
Labels
examples
Issue/PR related to examples
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 Binaries: Node: 19.6.0 npm: 9.4.0 Yarn: N/A pnpm: 8.4.0 Relevant packages: next: 13.4.4-canary.0 eslint-config-next: 13.4.3 react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which example does this report relate to?
https://nextjs.org/docs/app/building-your-application/configuring/mdx
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
When I follow the documentation for using MDX with app router, I get the following error -
Expected Behavior
I should be able to use MDX.
To Reproduce
https://github.com/MatthewCaseres/mdx-repro
The text was updated successfully, but these errors were encountered: