Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import error + radix-ui #265

Open
satendra02 opened this issue May 22, 2024 · 1 comment
Open

Can't import error + radix-ui #265

satendra02 opened this issue May 22, 2024 · 1 comment

Comments

@satendra02
Copy link

satendra02 commented May 22, 2024

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant