gluestack

gluestack Logogluestack

Cannot use Menu component in new Nextjs project

alex_16060 posted this in #support
Open in Discord
Avatar
alex_16060OP
Hi, enjoying Gluestack so far, unfortunately ran into an issue today with using the Menu component on an Avatar. Using essentially same code as the example at https://gluestack.io/ui/docs/components/menu, my app crashes with a type error: TypeError: MenuSeparator is undefined
From ui/menu/index.tsx:
Property 'Separator' does not exist on type 'IMenuComponentType<AnimatedProps<ViewProps & RefAttributes<View>> & MotionComponentProps<typeof View, ViewStyle, unknown, unknown, unknown>, VariantProps<...> & ... 2 more ... & RefAttributes<...>, TextProps>'.ts(2339)


The ref prop on Menu in that same file is also throwing a type error... To start, I cloned the https://gluestack.io/ui/docs/apps/starter-kit and am currently using this v of menu: @gluestack-ui/menu@0.2.33

1 Reply