Subscribe on changes!

Browser tags `font` are considered components, [Vue warn]: Failed to resolve component: font

avatar
Aug 18th 2021

Version

3.1.5

Reproduction link

https://codepen.io/you227/pen/vYmqKGO?editors=1111

Steps to reproduce

Browser tags font are considered components, [Vue warn]: Failed to resolve component: font .

浏览器标签 font 被认为是组件, 然后提示:[Vue warn]: Failed to resolve component: font

What is expected?

Should not prompt

What is actually happening?

Browser tags font are considered components

avatar
Aug 18th 2021

This is a deprecated element that you really should not use.

If you have to, configure it as a custom element like documented here (see compilerOptions.isCustomElement)

https://v3.vuejs.org/api/application-config.html#compileroptions