Skip to content

Is the "name" attribute required in (certain) single file components? #9655

Discussion options

You must be logged in to vote

This is due to the automated name generation from Nuxt which simply takes the path of the component.
In theory this shouldn't create any problems except the warning in dev. The warning basically says that the name is not in line with the W3C spec for custom elements (see vuejs/vue#11204 (comment) and the specs).

You can add a name on your own which will overwrite the "faulty" name and, as long as that one matches, the warning will disappear.

Replies: 2 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
3 replies
@Susccy
Comment options

@manniL
Comment options

@Susccy
Comment options

Answer selected by Susccy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants