【前端】vue Unknown custom element: xxxx did you register the component correctly
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相关推荐
- 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应用到组件 ...
- [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 ...
- [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 ...
- 【Vue 项目】Unknown custom element: XXX - did you register the component correctly? 【问题解决】
相信各位在学习和使用 Vue 进行开发的过程中,或多或少可能见到过或遇到过这样的报错: 问题出现的原因很简单:就是某个标签没有被成功导入. 问题的解决方案也很简单,网上一搜就会有很多解决方法,比如: ...
- 10-Vue报错Unknown custom element: bili-title - did you register the component correctly?
Vue报错这个问题,最后发现是引入顺序有问题,需要先导入自定义的组件js文件再把index挂载的js文件放到下面,顺序是先注册后使用 1.Vue.component("my-componen ...
- 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 ...
- 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划
导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...
- 使用vue.js路由踩到的一个坑Unknown custom element
在配合require.js使用vue路由的时候,遇到了路由组件报错: "vue.js:597 [Vue warn]: Unknown custom element: <router-l ...
- 解决[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 ...
最新文章
- CSS Guide Lines
- linux中权限的修改
- windows安装RabbitMQ注意事项
- .hpp文件_文件上传漏洞另类绕过技巧及挖掘案例全汇总
- 【Linux系列】mac终端与服务器连接
- 软件工程之可行性研究报告
- php简易聊天室系统,php实现简易聊天室应用代码
- PCIE标准共享,以及其机械尺寸图
- mysql 查询优化实验报告_数据库优化查询实验报告.docx
- 从零开始开发一款Android App
- 古筝四秀 宋婷婷、付娜、常静、吴莉
- 1005:地球人口承载力估计(c++)
- 大彩串口屏之LUA使用1
- npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none is installed. You must install
- K12在线教育App如何实现用户增长?
- python——之self参数
- python简单实例-python简单案例
- html5仿苹果通讯录效果,iOS 仿通讯录索引
- 程序员:被问“刚毕业吧”,憋一口老血如何回击?网友:不理睬!
- 技术干货 | 网易云信大规模聊天室系统架构解析