question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS Error: Property 'items' does not exist on type 'Required<MenuProps>'

See original GitHub issue

Reproduction link

https://ant.design/components/menu/#components-menu-demo-theme

Steps to reproduce

Copy code of https://ant.design/components/menu/#components-menu-demo-theme and try to get it working.

What is expected?

Code compiles.

What is actually happening?

TS error is thrown: Property 'items' does not exist on type 'Required<MenuProps>'.

Environment Info
antd 4.19.5
React 17.0.2
System mavcOS Monterey 12.2.1
Browser Google Chrome Version 100.0.4896.127

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
TomasMoratoPerezPorrocommented, Apr 22, 2022

Same here on react 17.0.2 ! 😢

This Issue should remain open !

6reactions
afc163commented, Apr 20, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript + React/Redux: Property "XXX" does not exist on ...
The exact error that I'm getting: TS2339: Property 'propToPass' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component ...
Read more >
Typescript Property XXX does not exist on type ... - Edureka
The exact error that I'm getting: TS2339: Property 'propToPass' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component ...
Read more >
property style does not exist on type Element - YouTube
Your browser can't play this video. Learn more. Switch camera ... property style does not exist on type Element | react typescript error....
Read more >
React.js: Property 'children' does not exist on type 'X'
The React.js error "Property 'children' does not exist on type" occurs when we try access the children property in a component for which...
Read more >
property '' does not exist on type 'intrinsicattributes' - You.com
You get that error because <Tag /> is typed as a string. So TypeScript doesn't know it's a react element. Here is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found