-
- Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: compiler🔩 p2-edge-case
Description
Vue version
3.2.47
Link to minimal reproduction
Steps to reproduce
click the button that says click me
What is expected?
some
event is emitted without warning
What is actually happening?
A warning is raised Component emitted event "some" but it is neither declared in the emits option nor as an "onSome" prop.
System Info
No response
Any additional comments?
The warning is only raised due to the presence of another
defined event. If the another
event is not defined, the some
event is registered properly. ie the following works properly:
type Emits = "some" | "emit"; const emit = defineEmits<{ (e: Emits): void; }>();
Metadata
Metadata
Assignees
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: compiler🔩 p2-edge-case