-
-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Labels
bugSomething isn't workingSomething isn't working
Description
To Reproduce
someone else had made an issue about this, though deleting the package-lock did not work, nor did adding compiler options. #1605
the error message is basically Type '{ children: ReactNode[]; themeSwitch?: { enabled?: boolean | undefined; component?: ReactNode; mode?: "light-dark" | "light-dark-system" | undefined; } | undefined; ... 6 more ...; tree: Root; }' is not assignable to type 'IntrinsicAttributes & DocsLayoutProps'. Property 'children' does not exist on type 'IntrinsicAttributes & DocsLayoutProps'.
Current vs. Expected behavior
> npm run build
> [email protected] build
> next build
▲ Next.js 15.5.7
Creating an optimized production build ...
[MDX] updated map file in 12.451399999999921ms
✓ Compiled successfully in 14.8s
Linting and checking validity of types ...Failed to compile.
./src/app/docs/layout.tsx:8:6
Type error: Type '{ children: ReactNode; themeSwitch?: { enabled?: boolean | undefined; component?: ReactNode; mode?: "light-dark" | "light-dark-system" | undefined; } | undefined; ... 6 more ...; tree: Root; }' is not assignable to type 'IntrinsicAttributes & DocsLayoutProps'.
Property 'children' does not exist on type 'IntrinsicAttributes & DocsLayoutProps'.
6 | export default function Layout({ children }: { children: ReactNode }) {
7 | return (
> 8 | <DocsLayout tree={source.pageTree} {...baseOptions}>
| ^
9 | {children}
10 | </DocsLayout>
11 | );
Next.js build worker exited with code: 1 and signal: null
Provide environment information
os is windows, versions:
"dependencies": {
"fumadocs-core": "15.6.5",
"fumadocs-mdx": "11.7.0",
"fumadocs-ui": "15.6.5",
"next": "^15.5.7",
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.11",
"@types/mdx": "^2.0.13",
"@types/node": "24.0.15",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"eslint": "^8",
"eslint-config-next": "15.4.2",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.11",
"typescript": "^5.8.3"
}Which area(s) are affected? (Select all that apply)
TypeScript (built-in types)
Additional context
I used create fumadocs so I'm quite surprised this happened.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working