Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
373 views
in Technique[技术] by (71.8m points)

vue引入组件,注册,使用,报没有built-in怎么办呢

Do not use built-in or reserved HTML elements as component id: header


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你理解错这个报错的意思了,这个报错的意思是,不要使用HTML5标准标签作为组件名,你大概有个叫做Header.vue的组件,然后<header></header>这样使用了。但是,headerHTML5的保留标签tag,你修改一下组件名吧,比如MyHeader.vue


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.7k users

...