Skip to content

Vue emits "Extraneous non-emits event listeners" warning for events on RouterView #1736

Closed Answered by posva
jez9999 asked this question in Help and Questions
Discussion options

You must be logged in to vote

This is not related to the router: the Home component doesn't declare that emit, that's why you see the warning. Since the @displaymodal is always bound to whatever component RouterView renders, when it renders a component that doesn't emit the event, Vue will warn you about it.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jez9999
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1735 on March 13, 2023 16:53.