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
>[email protected] build
> next build
▲ Next.js 15.1.3
Creating an optimized production build ...
(node:43401) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:43403) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✓ Compiled successfully
Linting and checking validity of types ...Failed to compile.
./components/ui/command.tsx:12:20
Type error: Type 'ForwardRefExoticComponent<Children & Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "key" | ... 1 more ... | keyof HTMLAttributes<...>> & { ...; } & RefAttributes<...>> & { ...; }' does not satisfy the constraint 'keyof IntrinsicElements | ForwardRefExoticComponent<any> | (new (props: any) => Component<any, {}, any>) | ((props: any) => ReactNode)'.
Type 'ForwardRefExoticComponent<Children & Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "key" | ... 1 more ... | keyof HTMLAttributes<...>> & { ...; } & RefAttributes<...>> & { ...; }' is not assignable to type'ForwardRefExoticComponent<any>'.
Type 'import("/Users/mathii/projects/cmdk-react-19/node_modules/cmdk/node_modules/@types/react/index").ReactNode' is not assignable to type'React.ReactNode'.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type'ReactNode'.
Property 'children' is missing intype'ReactElement<any, string | JSXElementConstructor<any>>' but required intype'ReactPortal'.
10 |
11 | const Command = React.forwardRef<> 12 | React.ElementRef<typeof CommandPrimitive>,
| ^
13 | React.ComponentPropsWithoutRef<typeof CommandPrimitive>
14 |>(({ className, ...props }, ref) => ( 15 |<CommandPrimitive
System Info
MacOS
Node v22.12.0
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:
Describe the bug
The docs state that cmdk works with react 19, but it does not?
Affected component/components
Command
How to reproduce
Codesandbox/StackBlitz link
https://stackblitz.com/edit/stackblitz-starters-v3swgmy5
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: