Component basics defineProps(['title']) not optional #2083
dgloriaweb
started this conversation in
General
Replies: 1 comment
-
Ok, my bad, there was a typo in my code. How can I delete this discussion? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
(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)
Beta Was this translation helpful? Give feedback.
All reactions