Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Component basics defineProps(['title']) not optional #2083

dgloriaweb started this conversation in General
Discussion options

(Hi, I've tried the code on this page
https://vuejs.org/guide/essentials/component-basics.html#dom-template-parsing-caveats

And defineEmits(['enlarge-text']) is not optional according to the message in the playground console:
"Extraneous non-emits event listeners (enlargeText) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.
at <BlogPostkey=3title="Why Vue is so fun"onEnlargeText=fn>
at "

Can the description please be edited? Thank you)

You must be logged in to vote

Replies: 1 comment

Comment options

Ok, my bad, there was a typo in my code. How can I delete this discussion?

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
1 participant

AltStyle によって変換されたページ (->オリジナル) /