Component global registry warning — failed to compile:

Warning Reasons:

The template file in vue allows you to compile and process HTML files with tags that are case-insensitive



The template in the HTML file is case-insensitive

The correct code is as follows:

Conclusion:

HTML file registered components, do not use camel name components, HTML is case-insensitive, Vue will be case-sensitive.

Example, component name:<cpnA></cpnA>, the component name is<cpna></cpna>

But what is recognized in the Vue template is<cpnA></cpnA>

This will cause the HTML and Vue component names to mismatch, rendering the component incorrectly.

Come on! Come on! Come on! Code more! Code more! Code more! I must become a very good front-end development engineer!

Don’t limit yourself! Don’t doubt yourself! Work hard! Come on!

itchao

August 12, 2021, 14:02:54