Skip to content

Ambiguous component name error does not mention first character cannot be numeric. #4428

Closed
vuejs/docs
#3264
@ThePendulum

Description

@ThePendulum

When assigning a component name, it is matched against a regex that does not allow the first character of the name to be numeric. However, the error thrown only mentions that the component name has to be alphanumeric:

Invalid component name: "0650475a". Component names can only contain alphanumeric characaters and the hyphen.

Other than the typo 'characaters', the provided component name also matches the condition of the error. It would be helpful if ~~~either the regex or~~~ the error is changed accordingly.

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions