cmdk icon indicating copy to clipboard operation
cmdk copied to clipboard

Can't import error + radix-ui

Open satendra02 opened this issue 1 year ago • 1 comments

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?

satendra02 avatar May 22 '24 13:05 satendra02

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)

satendra02 avatar May 23 '24 15:05 satendra02