TS Error: Property 'items' does not exist on type 'Required<MenuProps>'
See original GitHub issueReproduction 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:
- Created a year ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here on react 17.0.2 ! 😢
This Issue should remain open !
Fixed in https://github.com/ant-design/ant-design/pull/34937