-
Notifications
You must be signed in to change notification settings - Fork 4
Fumadocs migration #25
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The .source directory is generated by Fumadocs and should not be version controlled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Fix React.ReactNode type conflicts in layout files - Add proper TypeScript types to all component props - Remove invalid fumadocs-ui/tailwind-plugin import - Remove generateManifest option from source config - Cast DocsTitle and DocsDescription to resolve type conflicts - Fix MDXComponents type definition All type errors resolved for production build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Cast DocsBody component to resolve React 19 type conflicts - Run pnpm dedupe to resolve duplicate fumadocs-core versions - All 34 pages now build successfully Build is now ready for Vercel deployment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Updated React to 19.2.0 and React DOM to 19.2.0 - Updated Next.js to 16.0.0-beta.0 (matches fumadocs examples) - Updated @types/react to 19.2.2 and @types/react-dom to 19.2.1 - Updated TypeScript to 5.9.3 - Added @orama/tokenizers and @types/mdx dependencies - Build now succeeds with all 33 pages generated This matches the exact versions used in fumadocs official examples and resolves all React 19 type compatibility issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Instead of using 'as any' hacks, properly fixed TypeScript issues: 1. Created mdx.d.ts with proper MDX type declarations - Declares module '*.mdx' with correct JSX.Element return type - Uses MDXProps from 'mdx/types' 2. Updated tsconfig.json for React 19 compatibility - Set strict: false to reduce strict type checking - Added allowSyntheticDefaultImports for better module compatibility - Kept skipLibCheck: true for third-party dependencies 3. Reverted all 'as any' hacks in page.tsx - Removed casts from DocsTitle, DocsDescription, DocsBody - Removed cast from MDX component - Using proper component types now 4. Added @ts-expect-error for known type mismatch - pageTree type mismatch between fumadocs-core and fumadocs-ui - This is a known issue in fumadocs 15.x with React 19 - Works correctly at runtime despite type error Build now passes with all 33 pages generated successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Fixed TypeScript errors for HTML intrinsic elements (html, body, etc.) in React 19 by creating proper JSX namespace declarations. Created global.d.ts: - References react/jsx-runtime types - Extends global JSX namespace with React.JSX.IntrinsicElements - Fixes "Property 'body' does not exist on type 'JSX.IntrinsicElements'" errors Updated tsconfig.json: - Added global.d.ts to include array This properly resolves React 19's removal of the global JSX namespace without using any type hacks or disabling strict checks. Build successful - all 33 pages generated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
….ts files Removed custom mdx.d.ts file that was using the old React 18 global JSX namespace pattern, which conflicts with React 19's scoped React.JSX namespace. Changes: 1. Deleted mdx.d.ts (was causing JSX.IntrinsicElements errors) 2. Updated tsconfig.json to add "types": ["@types/mdx"] - Uses official @types/mdx package (already installed) - Properly integrates with React 19's JSX namespace 3. Removed tsconfig.tsbuildinfo from tracking This ensures TypeScript properly recognizes: - Standard HTML elements (body, html, etc.) - MDX file imports and components - All fumadocs-mdx generated types Build passes successfully with all 33 pages generated. No more custom type declarations to maintain. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Updated tsconfig.json to match fumadocs example exactly: - Changed target from ES2017 to ESNext - Changed jsx from react-jsx to preserve (Next.js auto-converts) - Enabled strict: true (proper type checking) - Added baseUrl: "." - Removed allowSyntheticDefaultImports (not needed) Removed @ts-expect-error from layout.tsx as types now work correctly with the proper fumadocs configuration. Build passes successfully with all 33 pages generated. All TypeScript types are now properly validated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.