一、Vue在引入组件后无法显示组件内容且报错如下:

  [Vue warn]: Do not use built-in or reserved HTML elements as component id: header

二、原因是vue里面不允许用特殊的单词给一个组件的注册然后在以自定义标签的方式引用会被限制,比如下图的header

三、解决方案

  在component里面注册组件的时候避免用特殊的单词作为组件名;

转载于:https://www.cnblogs.com/l-y-z/p/8445156.html

[Vue warn]: Do not use built-in or reserved HTML elements as component id: header相关推荐

  1. Vue报错'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 这是因为组件的命名和ht ...

  2. 解决 VUE: [Vue warn]: Do not use built-in or reserved HTML elements as component id: xx

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 新增一个组件,运行无问题,但F12报错: vue.esm.js?efeb:591 [Vue w ...

  3. 解决:vue.esm.js?efeb:591 [Vue warn]: Do not use built-in or reserved HTML elements as component id: me

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 报错如题: vue.esm.js?efeb:591 [Vue warn]: Do not us ...

  4. Do not use built-in or reserved HTML elements as component id等等vue warn问题

    vue开发项目过程中,会出现类似于:Do not use built-in or reserved HTML elements as component id ······的报错,why? 报错截图示 ...

  5. [Vue warn]: Unknown custom element: <Top> - did you register the component correctly?

    [Vue warn]: Unknown custom element: - did you register the component correctly? 错误如下: 出现错误的原因有以下几种: ...

  6. [Vue warn]: Unknown custom element: <helptext> - did you register the component correctly? For recu

    报错信息: vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For ...

  7. 解决[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recursive

    [Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recur ...

  8. Vue报错-[Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correc

    项目场景: 今天在使用到vant组件的时候引入报错. [Vue warn]: Unknown custom element: <van-action-sheet> - did you re ...

  9. 【 已解决】[Vue warn]:Unknown custom element: <a-calendar> - did you register the component correctly

    [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive compon ...

最新文章

  1. 网络工程师_记录的一些真题_2017下半年上午
  2. FPGA之道(9)BLOCK RAM以及DSP硬核
  3. android 安装卸载应用提醒_Android监听程序的安装和卸载
  4. php的变量、传值、传址、销毁变量
  5. Oracle EXP/IMP参数详解
  6. 如何使用 TStringGrid 呈现大量的颜色信息 - 回复 冷公子 的问题
  7. 学习 Kotlin 的 20 个实用资源
  8. bootstrap-table初始化配置
  9. 在安全防火墙内通过 WebHook 触发构建
  10. ACM算法笔记(一)模拟算法【详细解析】
  11. 美赛、国赛数学建模优秀范文 O奖、国一
  12. 打包后的APK文件,微信发送给别人后面出现.apk.1无法安装
  13. Java第十九天:mysql(二)
  14. 学习路上遇到的Error1
  15. Adobe国际认证中文官网
  16. 简单的扫描枪模拟程序
  17. 敏涵·精致遮暇乳打造“新国妆”专场 致力新锐品牌强势“出圈”
  18. 图像识别开源_看看开源图像识别技术
  19. spring常见漏洞总结
  20. 【Quant】BigQuant学习笔记(1) 可视化策略

热门文章

  1. linux c配置文件书写格式,读取配置文件源代码[linux c]
  2. golang基于UDP完成
  3. 最大正方形—leetcode221
  4. 编写ShellCode
  5. ADO连接ACCESS数据库
  6. zzuli 2527: THE END IS COMING!!!!!(最小费用最大流)
  7. 牛客网暑期ACM多校训练营(第二场)D-money (dp)
  8. 前K个高频元素(top k)(TX)
  9. rds oracle utl file,本地Oracle数据上传到AWS的RDS
  10. php 张开收缩显示,js实现可以点击收缩或张开的悬浮窗