pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.04k stars 259 forks source link

cannot be used as a JSX component #214

Closed ahoyahoy closed 4 months ago

ahoyahoy commented 5 months ago

I'm getting this error

'Command' cannot be used as a JSX component.
  Its type 'ForwardRefExoticComponent<Children & DivProps & { label?: string | undefined; shouldFilter?: boolean | undefined; filter?: ((value: string, search: string) => number) | undefined; ... 4 more ...; vimBindings?: boolean | undefined; } & RefAttributes<...>> & { ...; }' is not a valid JSX element type.

This is probably due to old @types/react.

Can you please update it?

pacocoursey commented 4 months ago

I have a feeling this is a problem with your build setup, not the libraries.