-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Vue 3.3.4. doesn't setup events defined with enum values #8466
Comments
Why not? This is valid type. Maybe at least it is possible throw an exception on build time that enums are not supported? Also noticed, that this bug is reproduced only when enum value, and strings are mixed within event names.
|
Are you sure? |
Yes, sorry, you are right, there are no emits generated, just noticed that there are no runtime warning with this setup |
Yes, all events declared with enum are marked as "Not declared" in Vue's browser extension. |
I can confirm this seems to be a bug. We are using enums to define all our events and they are not picked up by Vue. Results in events being executed twice. |
Would be nice to support Enums inside defineEmits |
Vue version
3.3.4
Link to minimal reproduction
https://github.com/tragid/vue-default-export-error/tree/vue-3.3.4-emit-errors-2
Steps to reproduce
What is expected?
Can setup events with imported enum
What is actually happening?
Facing runtime errors on DEV and not setting up emits on PROD.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: