You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type '{ children: Element[]; align: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes'.
Property 'children' does not exist on type 'IntrinsicAttributes & RefAttributes'.
Affected component/components
Dropdown Menu
How to reproduce
Install the Dropdown menu component in NextJs 15 with React 19 (19.0.0-rc-66855b96-20241106) project.
Install the next theme and provide a theme provider.
Create a mode toggle given by shadcn UI library and then it show an error on Dropdown menu content and Dropdown menu item.
When you open "/components/ui/dropdown-menu.tsx" then it also show some other type errors.
Codesandbox/StackBlitz link
No response
Logs
│ >[email protected] build
│ > next build
│
│ ▲ Next.js 15.0.3
│
│ Creating an optimized production build ...
│ ✓ Compiled successfully
│ Linting and checking validity of types .Failed to comp
│ ile.
│
│ ./src/components/mode-toggle.tsx:27:14
│ Type error: Type '{ children: Element[]; align: string; }'
│ is not assignable to type'IntrinsicAttributes & RefAttri│ butes<never>'.
│ Property 'children' does not exist on type'IntrinsicAtt│ ributes & RefAttributes<never>'.
│
│ 25 |</Button>
│ 26 |</DropdownMenuTrigger>
│ > 27 |<DropdownMenuContent align="end">
│ | ^
│ 28 |<DropdownMenuItem onClick={() => se
│ tTheme("light")}>
│ 29 | Light
│ 30 |</DropdownMenuItem>
│ npm error Lifecycle script `build` failed with error:
│ npm error code 1
│ npm error path /Users/rohanchaudhary/Desktop/bondra/apps/f
│ rontend
│ npm error workspace [email protected]
│ npm error location /Users/rohanchaudhary/Desktop/bondra/ap
│ ps/frontend
│ npm error command failed
│ npm error command sh -c next build
│
│ command finished with error: command (/Users/rohanchaudhar
│ y/Desktop/bondra/apps/frontend) /opt/homebrew/bin/npm run
│ build exited (1)
System Info
Browser: Brave (Version 1.73.91)
Code Editor: Visual Studio Code (Version 1.95)
System: Mac OS Sequoia (Version 15.1)
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues
The text was updated successfully, but these errors were encountered:
);
} Hello! Am I reproducing your error correctly? I have Next.js v15.0.3 and React v19, installednext-themes`, and used the mode toggle from shadcn, but could not reproduce the error. Am I missing anything?
I am not getting an error, although I am reproducing your error. Please check if you're missing any additional error that could help resolve the problem
Describe the bug
Type '{ children: Element[]; align: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes'.
Property 'children' does not exist on type 'IntrinsicAttributes & RefAttributes'.
Affected component/components
Dropdown Menu
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: