Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Type '() => Promise<void>' is not assignable to type 'MouseEvent' #2013

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

Closed
francoism90 opened this issue Oct 13, 2022 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@francoism90
Copy link

francoism90 commented Oct 13, 2022

More people are reporting this: https://stackoverflow.com/questions/74037132/how-to-correctly-listen-to-an-event-in-vue-3-using-ts

It seems to be caused by testing, because I only get this when building.

src/components/Search.vue:4:6 - error TS2322: Type '() => Promise<void>' is not assignable to type 'Event'.

4     @submit.prevent="submit"
@johnsoncodehk
Copy link
Member

Duplicate of #1985

@johnsoncodehk johnsoncodehk marked this as a duplicate of #1985 Oct 13, 2022
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants