You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try using Select component in any Next.js page (both client and server components)
Import and use Select with SelectItem children
Error Stack Trace:
Error: Unknown element <[object Object]> in collection.
at $eb2240fc39a57fa5$export$bf788dd355e3a401.getFullNode
at getFullNode.next
at $eb2240fc39a57fa5$export$bf788dd355e3a401.iterateCollection
at iterateCollection.next
at [Symbol.iterator]
at Generator.next
at new $a02d57049d202695$export$d085fb9e920b5ca7
at eval
at eval
at mountMemo
at Object.useMemo
at exports.useMemo
at $7613b1592d41b092$export$6cd28814d92fa9c9
at $e72dd72e1c76a225$export$2f645645f7bca764
at useMultiSelectListState
at useMultiSelectState
at useSelect
at Select2
Code Examples:
Direct usage in page:
// In any Next.js pageimport{Select,SelectItem}from'@heroui/react'exportdefaultfunctionPage(){return(<Select><SelectItemkey="option1">Option 1</SelectItem><SelectItemkey="option2">Option 2</SelectItem></Select>)}
Environment:
Steps to Reproduce:
Error Stack Trace:
Error: Unknown element <[object Object]> in collection.
at $eb2240fc39a57fa5$export$bf788dd355e3a401.getFullNode
at getFullNode.next
at $eb2240fc39a57fa5$export$bf788dd355e3a401.iterateCollection
at iterateCollection.next
at [Symbol.iterator]
at Generator.next
at new $a02d57049d202695$export$d085fb9e920b5ca7
at eval
at eval
at mountMemo
at Object.useMemo
at exports.useMemo
at $7613b1592d41b092$export$6cd28814d92fa9c9
at $e72dd72e1c76a225$export$2f645645f7bca764
at useMultiSelectListState
at useMultiSelectState
at useSelect
at Select2
Code Examples:
Both approaches result in the same error.
Attempted Solutions:
Current Workaround:
Had to create a custom select component using native HTML select element instead of using HeroUI's Select component.
Additional Notes:
The text was updated successfully, but these errors were encountered: