Closed bfourgeaud closed 6 months ago
use this command
npm install cmdk
Remember shadcn-ui is based on radix-ui so some time you should read the error carefully.because you have to download some radix packages
@7hourspg cmdk@0.2.1
is installed if you look at my package.json ...
can you install this package
npm i @radix-ui/react-focus-scope
i'm telling you to install this because This is an internal utility for radix-ui. let me know if issue still persists
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.
Hello,
When I try to use the Command component it throws an error :
Error: Failed to read source code from [...]\node_modules\@radix-ui\react-dialog\node_modules\@radix-ui\react-focus-scope\dist\index.mjs
In fact in /node_modules the @radix-ui\react-focus-scope package doesn't exist
I installed the Command component like this
npx shadcn-ui@latest add command
I am using
NextJs v14.1
my package.json
$ node -v
v20.11.0
Code throwing the error :
To make it work I have to comment out the CommandDialog function from
components/ui/command.tsx