Menu: Property 'item' does not exist on type '{ submenuheader: MenuItem; }' #4810
Labels
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
Describe the bug
I added
lang="ts"
to the example at https://primevue.org/menu/#template. When I ran the commandvue-tsc --noEmit
, I got the following error:error TS2339: Property 'item' does not exist on type '{ submenuheader: MenuItem; }'. <template #submenuheader="{ item }">
Here are the versions of TypeScript and vue-tsc that I am using:
"typescript": "^5.2.2",
"vue-tsc": "^1.8.22"
Thank you for your help!
Reproducer
/
PrimeVue version
3.40.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: