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
Sure enough commenting it out seems to fix the problem.
I'm not familiar with RadixUI internals so I would appreciate any help with this if I'm even doing this right. The only other thing to note is that it somehow worked with Create React App, which I'm trying to migrate off of to Vite which now has this problem.
The text was updated successfully, but these errors were encountered:
I have a component that does a simple thing:
The problem is it throws:
After hours of digging, I tracked it down to this specific line of code
themes/packages/radix-ui-themes/src/components/dropdown-menu.tsx
Line 140 in b469845
And the
<DropdownMenuPrimitive.Item>
children becomes essentially a children array[{…}, undefined]
that this line will check and throwhttps://github.com/radix-ui/primitives/blob/660060a765634e9cc7bf4513f41e8dabc9824d74/packages/react/slot/src/Slot.tsx#L72
Sure enough commenting it out seems to fix the problem.
I'm not familiar with RadixUI internals so I would appreciate any help with this if I'm even doing this right. The only other thing to note is that it somehow worked with Create React App, which I'm trying to migrate off of to Vite which now has this problem.
The text was updated successfully, but these errors were encountered: