shadcn-ui/ui

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

khanhhuy130295 opened this issue · 1 comments

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