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

[bug]: [Example/Forms/Account]->[Command] TypeError: undefined is not iterable with nextjs 14 #3674

Closed
2 tasks done
khanhhuy130295 opened this issue May 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@khanhhuy130295
Copy link

khanhhuy130295 commented May 5, 2024

Describe the bug

I copied a sample of the setting form then NextJS threw a type error.
I rechecked the document and I found the sample missed CommandList to wrap CommandGroup
image

Affected component/components

Commmand

How to reproduce

  1. create new src nextjs 14
  2. copy sample of the setting form: example/account
  3. touch Language selector at Account Setting

image

Codesandbox/StackBlitz link

No response

Logs

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

Call Stack
Function.from
<anonymous>
A
node_modules/cmdk/dist/index.mjs (1:3977)
U
node_modules/cmdk/dist/index.mjs (1:2997)
eval
node_modules/cmdk/dist/index.mjs (1:1738)
eval
node_modules/cmdk/dist/index.mjs (1:10360)
Map.forEach
<anonymous>
eval
node_modules/cmdk/dist/index.mjs (1:10360)

System Info

System: ubuntu 22.04
Browsers: Google Chrome
FW: nextjs14
Node:20.12.0

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@khanhhuy130295 khanhhuy130295 added the bug Something isn't working label May 5, 2024
@khanhhuy130295
Copy link
Author

Ref: #3637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant