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] defineEmits type error #3596

Closed
AfireHong opened this issue Sep 26, 2023 · 0 comments
Closed

[bug] defineEmits type error #3596

AfireHong opened this issue Sep 26, 2023 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@AfireHong
Copy link

AfireHong commented Sep 26, 2023

volar version 1.8.14
ts version: 5.1.6
vue version: 2.7.14

Defining events in defineEmits with kebab-case, the type in the template will report error

in component
image

using component
image

when I use Camel-Case, it works fine
image

this is reproduction

https://github.com/AfireHong/defineEmits-types-err-demo

@xiaoxiangmoe xiaoxiangmoe added the bug Something isn't working label Sep 26, 2023
@johnsoncodehk johnsoncodehk added the good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

3 participants