vue开发之Do not use built-in or reserved HTML elements as component id: header
2019-06-20 16:28
471 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/sinat_41694829/article/details/93057835
刚刚在搭建项目时发现控制台报错
查找发现是因为组件名称所致,也就是当我们起名一个header.vue的组件时,我们安装的vue插件会自动把name设置为default
这就造成了错误
把header修改为headerNav就ok了!!当然你可以修改为任何你喜欢的名字,前提是不冲突
如果你的才华还实现不了你的野心,那就静下心来,埋头苦干。有志者事竟成破釜成舟百二秦关终属楚,苦心人天不负卧薪尝胆三千越甲可吞吴!
相关文章推荐
- 【vue】Do not use built-in or reserved HTML elements as component id: header 报错提示
- vue报错 Do not use built-in or reserved HTML elements as component id:header
- vue开发之[Vue warn]: Do not use built-in or reserved HTML elements as component id: body
- vue引入组件无法显示且报错[Vue warn]: Do not use built-in or reserved HTML elements as component id: header
- [Vue warn]: Do not use built-in or reserved HTML elements as component id: header
- vue Do not use built-in or reserved HTML elements as component id: nav
- [Vue warn]: Do not use built-in or reserved HTML elements as component id:
- vue项目报错'Do not use built-in or reserved HTML elements as component id:'
- Do not use built-in or reserved HTML elements as component
- Vue2+Webpack错误:Do not mount Vue to <html> or <body> - mount tonormal elements instead.
- Do not mount Vue to <html> or <body> - mount to normal elements instead.
- Do not mount Vue to <html> or <body> - mount tonormal elements instead.
- 异常-----Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.\u003Cformat> or ?string(format) built-
- [Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
- Do not use lsnrctl and sqlplus as SYSDBA in RAC
- Android Make sure other views do not use the same id
- Request header field sessionId is not allowed by Access-Control-Allow-Headers in preflight response.
- Why do people use enums in C++ as constants while they can use const?
- uploaddify 报错 "ID SWFUpload_0 is already in use. The Flash Object could not be added"
- builtin function or method object is not subscriptable