• 如何解决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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsLeft.vue
           <App> at srcApp.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 srccomponentsTop.vue
           <App> at srcApp.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 srccomponentsTop.vue
           <App> at srcApp.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 srccomponentsTop.vue
           <App> at srcApp.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 srccomponentsTop.vue
           <App> at srcApp.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 'muse-ui';
    import 'muse-ui/dist/muse-ui.css';
    
    Vue.use(MuseUI);
  • 相关阅读:
    10分钟教你用Python玩转微信之抓取好友个性签名制作词云
    1. 配置win7下odbc数据源找不到数据库驱动的问题
    1. 加签和会签的区别
    4. mysql 1449 : The user specified as a definer ('test'@'%') does not exist 解决方法
    1. 在config.ini文件中加入dm.park.time=1,会使uap中的tomcat启动加快
    37. sqlplus工具连接服务端或其他电脑的oracle方式
    36. Oracle查询数据库中所有表的记录数
    4. mysql 查看数据库中所有表的记录数
    35. Oracle监听器启动出错:本地计算机上的OracleOraDb11g_home1TNSListener服务启动后又停止了解决方案
    4. powerdesigner 生成sql脚本步骤
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313769.html
Copyright © 2020-2023  润新知