Closed mustafaskyer closed 4 months ago
examples in the repo works as expected. seems cli generate from outdate examples.
I just created a new example using the --example <repo-url>
option from nextjs
cli
npx create-next-app@latest --example https://github.com/fuma-nama/fumadocs/tree/dev/examples/next-mdx
also have to update package.json
"dependencies": {
"fumadocs-core": "latest",
"fumadocs-mdx": "latest",
"fumadocs-ui": "latest",
"next": "^14.2.4",
"react": "18.3.1",
"react-dom": "18.3.1"
},
this issue exist in any examples.
Error: DialogClose
must be used within Dialog
it happens when you click on search
After debugging for hours, I finally found it is due to a different version of Radix UI dialog is installed by the cmdk package. Since the React context isn't shared between different versions of Radix UI dialog, it resulted in an error unless you explicitly install a version of Radix UI dialog on your project.
I have opened an issue there and made a workaround, will release it soon.
Released, welcome to give it a try
fixed. thanks for your support. appreciated @fuma-nama
To Reproduce
pnpm create fumadocs-app
cd <dir> && pnpm dev
Current vs. Expected behavior
expect to run the app with out issues
Provide environment information
Which area(s) are affected? (Select all that apply)
MDX
Additional context
No response