首頁  >  文章  >  web前端  >  Vue.js模板報錯該如何解決? Vue.js範本錯誤的解決方法

Vue.js模板報錯該如何解決? Vue.js範本錯誤的解決方法

不言
不言原創
2018-08-11 15:07:124587瀏覽

本篇文章帶給大家的內容是關於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中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn