-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDX breaks as now requires "use client" #57538
Comments
Make sure you have |
Had the same issue, specifically I wish the documentation made this more clear, or the error called out that it couldn't find |
The problem persists, even though I have |
See my previous comment, |
Tested: 9/22/2024. Result: Success Added mdx-components.tsx file which contains: import type { MDXComponents } from "mdx/types";
export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...components,
};
} Note: Make sure to restart the server once it's added. |
Link to the code that reproduces this issue
https://github.com/LunaticMuch/redesigned-octo-fortnight
To Reproduce
[manual](https://nextjs.org/docs/app/building-your-application/configuring/mdx)
for installing MDXnpm run dev
Current vs. Expected behavior
You would expect to see the mdx page, instead
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000 Binaries: Node: 20.5.1 npm: 9.8.0 Yarn: 1.22.19 pnpm: 8.7.6 Relevant Packages: next: 14.0.0 eslint-config-next: 14.0.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
MDX (@next/mdx)
Additional context
I just did a simple test following the manual.
The text was updated successfully, but these errors were encountered: