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

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

@driver005

Description

@driver005

'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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions