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

[Bug Report][3.3.0] Type error when declaring @click events on buttons with no props #17404

Closed
jfrs opened this issue May 19, 2023 · 2 comments
Closed
Labels
duplicate The issue has already been reported

Comments

@jfrs
Copy link

jfrs commented May 19, 2023

Environment

Vuetify Version: 3.3.0
Vue Version: 3.3.4
Browsers: Firefox 113.0
OS: Windows 10

Steps to reproduce

When declaring a click handler on a v-btn or a v-app-bar-nav-icon without any other props, I get error TS2559: Type '{ onClick: any; }' has no properties in common with type '{ symbol?: any; replace?: boolean | undefined; flat?: boolean | undefined; exact?: boolean | undefined; block?: boolean | undefined; active?: boolean | undefined; style?: StyleValue | undefined; ... 47 more ...; "v-slot:loader"?: false | ... 1 more ... | undefined; }'.

Expected Behavior

No error is shown when using <v-btn @click="() => {}">

Actual Behavior

Type error mentioned above

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

It could be related to vuejs/language-tools#3122 but I'm not sure how to investigate further, and the error seems to be different.

@KaelWD
Copy link
Member

KaelWD commented May 19, 2023

Duplicate of #16190

@KaelWD KaelWD marked this as a duplicate of #16190 May 19, 2023
@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2023
@KaelWD KaelWD added the duplicate The issue has already been reported label May 19, 2023
@jfrs
Copy link
Author

jfrs commented Nov 15, 2023

This is still an issue with Vue 3.3.8 and Vuetify 3.4.0, although the duplicate was closed and marked as wontfix, so I'm not sure if this is also in the same boat.

Here's an updated reproduction link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue has already been reported
Projects
None yet
Development

No branches or pull requests

2 participants