Ask Your Question

Revision history [back]

The "Extraneous non-emits event listeners" warning in Vue.js means that there are event listeners that have been added to a component but are not being emitted by that component.

In the context of RouterView, this warning is typically related to event listeners that have been added to the RouterView component but are actually intended to be emitted by child components within the RouterView.

For example, if a child component within the RouterView emits a "close" event, but there is also an "onclose" event listener added to the RouterView component, then the warning may be triggered because the "onclose" listener is not actually being emitted by the RouterView itself.

To resolve this warning, you can either remove the extraneous event listeners from the RouterView component or ensure that the appropriate child components are emitting the events that are being listened for.