1.概述

报如下错误的话啊,可以看出elementui组件没有被注册


注册之后即可 文件位置:src/main.js

import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui' # 修改位置Vue.config.productionTip = false
Vue.use(ElementUI) # 修改位置new Vue({router,store,render: function (h) { return h(App) }
}).$mount('#app')

【前端】vue Unknown custom element: xxxx did you register the component correctly相关推荐

  1. Vue报错:Unknown custom element: router-view - did you register the component correctly页面中不显示链接

    Vue报错:Unknown custom element: router-view - did you register the component correctly vue-router应用到组件 ...

  2. [Vue warn]: Unknown custom element: vhead - did you register the component correctly? For recursiv

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

  3. [Vue warn]: Unknown custom element: usertree - did you register the component correctly? For recur

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

  4. 【Vue 项目】Unknown custom element: XXX - did you register the component correctly? 【问题解决】

    相信各位在学习和使用 Vue 进行开发的过程中,或多或少可能见到过或遇到过这样的报错: 问题出现的原因很简单:就是某个标签没有被成功导入. 问题的解决方案也很简单,网上一搜就会有很多解决方法,比如: ...

  5. 10-Vue报错Unknown custom element: bili-title - did you register the component correctly?

    Vue报错这个问题,最后发现是引入顺序有问题,需要先导入自定义的组件js文件再把index挂载的js文件放到下面,顺序是先注册后使用 1.Vue.component("my-componen ...

  6. vue-2.5.16.js:597 [Vue warn]: Unknown custom element: ocean - did you register the component corre

    vue-2.5.16.js:597 [Vue warn]: Unknown custom element: - did you register the component correctly? Fo ...

  7. 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划

    导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...

  8. 使用vue.js路由踩到的一个坑Unknown custom element

    在配合require.js使用vue路由的时候,遇到了路由组件报错: "vue.js:597 [Vue warn]: Unknown custom element: <router-l ...

  9. 解决[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 ...

最新文章

  1. CSS Guide Lines
  2. linux中权限的修改
  3. windows安装RabbitMQ注意事项
  4. .hpp文件_文件上传漏洞另类绕过技巧及挖掘案例全汇总
  5. 【Linux系列】mac终端与服务器连接
  6. 软件工程之可行性研究报告
  7. php简易聊天室系统,php实现简易聊天室应用代码
  8. PCIE标准共享,以及其机械尺寸图
  9. mysql 查询优化实验报告_数据库优化查询实验报告.docx
  10. 从零开始开发一款Android App
  11. 古筝四秀 宋婷婷、付娜、常静、吴莉
  12. 1005:地球人口承载力估计(c++)
  13. 大彩串口屏之LUA使用1
  14. npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none is installed. You must install
  15. K12在线教育App如何实现用户增长?
  16. python——之self参数
  17. python简单实例-python简单案例
  18. html5仿苹果通讯录效果,iOS 仿通讯录索引
  19. 程序员:被问“刚毕业吧”,憋一口老血如何回击?网友:不理睬!
  20. 技术干货 | 网易云信大规模聊天室系统架构解析

热门文章

  1. 华为P50系列已适配鸿蒙OS 2.0 Beta2:有望4月亮相
  2. 雷军:到了40岁觉得自己一事无成
  3. 新款iPhone SE并未搭载U1超宽带芯片,后续恐不支持AirTag
  4. 华为P40系列国行版来了:价格成最大悬念!
  5. 疫情下的十大堵城:复工后整体拥堵下降37.3%
  6. 快播王欣:区块链今天最重要的成果还只是理念布道
  7. 索尼Xperia 2带壳渲染图曝光:外形依然很索尼
  8. iPhone6s用户感动!升级ios13还能再战两年
  9. 教育部:浙江大学等35所高校新增人工智能本科专业
  10. 余承东透露华为Mate X发布时间:今年六月上市