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

Menu: Property 'item' does not exist on type '{ submenuheader: MenuItem; }' #4810

Closed
apiret opened this issue Nov 13, 2023 · 1 comment
Closed
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@apiret
Copy link

apiret commented Nov 13, 2023

Describe the bug

I added lang="ts" to the example at https://primevue.org/menu/#template. When I ran the command vue-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

@apiret apiret added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 13, 2023
@tugcekucukoglu
Copy link
Member

Duplicate #4809

@tugcekucukoglu tugcekucukoglu added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants