question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ThePendulumcommented, Dec 9, 2016

I understand that, but maybe the error message can highlight this fact?

0reactions
phanancommented, Dec 9, 2016

Interestingly your issue just revealed a typo in Vue’s source code. I’ll see to that too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: "The first character in this name cannot be a number
This issue occurs when the name of the file is provided as a number in the beginning of the file name. Example. 1.txt;...
Read more >
9 Error messages | The tidyverse style guide
An error message should start with a general statement of the problem ... be a numeric vector, not a character vector. dplyr::nth(1:10, 1:2)...
Read more >
alloy - This name is ambiguous due to multiple matches
A type error has occured: This name is ambiguous due to multiple matches: field this/Port <: belongsTo field this/Component <: belongsTo.
Read more >
Error Explanations for The W3C Markup Validation Service
You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found