cmdk
cmdk copied to clipboard
Can't import error + radix-ui
Installed cmdk using yarn.
yarn add cmdk
Copy and paste the CommandMenu component same as given in README.md
Here is the Error log when trying to run sever.
Failed to compile.
./node_modules/@radix-ui/react-presence/dist/index.mjs
Can't import the named export 'Children' from non EcmaScript module (only default export is available)
I am using React version 17.0.2. What I am missing here?
Upgraded React to 18.2.0. Now it gives the same error in different package of radix-ui
Failed to compile.
./node_modules/@radix-ui/react-slot/dist/index.mjs
Can't import the named export 'Children' from non EcmaScript module (only default export is available)