首页 > web前端 > js教程 > 正文

Vue.js模板报错该如何解决?Vue.js模板报错的解决方法

不言
发布: 2018-08-11 15:07:12
原创
4592 人浏览过

本篇文章给大家带来的内容是关于Vue.js模板报错该如何解决?Vue.js模板报错的解决方法,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。

1、错误描述

log.js?1afd:24 [HMR] Waiting for update signal from WDS...
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-col> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-list-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Left> at src\components\Left.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-appbar> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Top> at src\components\Top.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Top> at src\components\Top.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-chip> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Top> at src\components\Top.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <mu-avatar> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Top> at src\components\Top.vue
       <App> at src\App.vue
         <Root>
warn @ vue.runtime.esm.js?2b0e:587
vue.runtime.esm.js?2b0e:8010 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
登录后复制

2、错误原因

在使用Muse-UI组件,但是没有安装这个组件,更没有引入这个组件,导致出现了找不到

3、解决办法

(1)安装Muse-UI

npm i muse-ui -S
登录后复制

(2)引入Muse-UI

import MuseUI from &#39;muse-ui&#39;;
import &#39;muse-ui/dist/muse-ui.css&#39;;

Vue.use(MuseUI);
登录后复制

 相关推荐:

js如何调试?js利用断点进行调试的方法

js兼容问题:js事件兼容的方法总结(附例子)

原生js对DOM可以进行什么操作?原生js对dom的操作方法

以上是Vue.js模板报错该如何解决?Vue.js模板报错的解决方法的详细内容。更多信息请关注PHP中文网其他相关文章!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!