Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

error TS2786: 'DropdownMenu' cannot be used as a JSX component. #102

Open
driver005 opened this issue Nov 3, 2023 · 0 comments
Open

error TS2786: 'DropdownMenu' cannot be used as a JSX component. #102

driver005 opened this issue Nov 3, 2023 · 0 comments

Comments

@driver005
Copy link

'DropdownMenu' cannot be used as a JSX component.
Its type 'FC & { Trigger: ForwardRefExoticComponent<DropdownMenuTriggerProps & RefAttributes>; ... 12 more ...; Hint: { ...; }; }' is not a valid JSX element type.
Type 'FC & { Trigger: ForwardRefExoticComponent<DropdownMenuTriggerProps & RefAttributes>; ... 12 more ...; Hint: { ...; }; }' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
Type 'ReactElement<any, any> | null' is not assignable to type 'ReactNode'.
Type 'ReactElement<any, any>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement<any, any>' but required in type 'ReactPortal'.ts(2786)
index.d.ts(175, 9): 'children' is declared here.

Not getting medusa ui working in my project
https://github.com/driver005/codebase

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant