Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout/AppMenuitem.tsx:50:13 - No overload matches this call. #86

Open
Spike433 opened this issue Oct 26, 2024 · 0 comments
Open

layout/AppMenuitem.tsx:50:13 - No overload matches this call. #86

Spike433 opened this issue Oct 26, 2024 · 0 comments

Comments

@Spike433
Copy link

Hello, when I run tsc --noEmit I get error after cloning this repo. Error can also be reproduced by running yarn build.

$ yarn tsc --noEmit
yarn run v1.22.22

layout/AppMenuitem.tsx:50:13 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(props: CSSTransitionProps<HTMLElement | undefined>): CSSTransition<HTMLElement | undefined>', gave the following error.
    Type 'Element' is not assignable to type 'TransitionChildren'.
      Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.
  Overload 2 of 2, '(props: CSSTransitionProps<HTMLElement | undefined>, context: any): CSSTransition<HTMLElement | undefined>', gave the following error.
    Type 'Element' is not assignable to type 'TransitionChildren'.

 50             <ul>
                ~~~~
 51                 {item!.items.map((child, i) => {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
 53                 })}
    ~~~~~~~~~~~~~~~~~~~
 54             </ul>
    ~~~~~~~~~~~~~~~~~

  node_modules/@types/react-dom/node_modules/@types/react/index.d.ts:378:9
    378         children: ReactNode;
                ~~~~~~~~
    'children' is declared here.
  node_modules/@types/react-transition-group/Transition.d.ts:124:5
    124     children?: TransitionChildren | undefined;
            ~~~~~~~~
    The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & (IntrinsicClassAttributes<CSSTransition<HTMLElement | undefined>> & Readonly<...>)'
  node_modules/@types/react-transition-group/Transition.d.ts:124:5
    124     children?: TransitionChildren | undefined;
            ~~~~~~~~
    The expected type comes from property 'children' which is declared here on type 'IntrinsicAttributes & (IntrinsicClassAttributes<CSSTransition<HTMLElement | undefined>> & Readonly<...>)'


Found 1 error in layout/AppMenuitem.tsx:50
@Spike433 Spike433 changed the title layout/AppMenuitem.tsx:50:13 - error TS2769: No overload matches this call. layout/AppMenuitem.tsx:50:13 - No overload matches this call. Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant