-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Seems to be version issues with contentlayer #547
Comments
You have to override the dependency versions with overrides option in package.json {
"overrides": {
"unified": "^11.0.4",
"mdx-bundler": "^10.0.1"
}
} |
I have that. The issue appears for me even in the template generated through |
For pnpm, you need |
Closing this as the Contentlayer adapter is now deprecated, you may consider Fumadocs MDX, Content Collections, MDX Remote or other content sources. |
No worries. It's a great library regardless. I'll try out the other options. |
To Reproduce
fumadocs-core depends on remark 15.x, and there appears to be an issue with
contentlayer
and the latest version of remark and several remark and rehype dependencies as the whole unified framework goes through a major update. There's an issue here, but there are quite a few similar issues posted elsewhere.Current vs. Expected behavior
The fumdadocs contentlayer template, without any modification produces the same error:
Provide environment information
Which area(s) are affected? (Select all that apply)
Core, MDX, Integrations (e.g Contentlayer, OpenAPI, Typescript DocsGen), Examples
Additional context
This seems to be an issue with remark 15+, and all unified dependencies that recently updated to support remark 15+. I've had a similar issue with the same app before moving to fumadocs (which is otherwise awesome by the way), and was able to resolve it by setting a strict version for remark, remark-math, rehype-mathjax, and particularly remark-gfm but currently the fumadocs package is overriding that with their 15.x remark dependency.
The text was updated successfully, but these errors were encountered: