[bug]: [Example/Forms/Account]->[Command] TypeError: undefined is not iterable with nextjs 14
khanhhuy130295 opened this issue · 1 comments
khanhhuy130295 commented
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
Affected component/components
Commmand
How to reproduce
- create new src nextjs 14
- copy sample of the setting form: example/account
- touch Language selector at Account Setting
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 commented
Ref: #3637