Maison > Article > interface Web > Comment résoudre l’erreur de modèle Vue.js ? Solutions aux rapports d'erreurs du modèle Vue.js
Le contenu de cet article explique comment résoudre les erreurs de modèle Vue.js ? La solution au rapport d'erreurs du modèle Vue.js a une certaine valeur de référence. Les amis dans le besoin peuvent s'y référer. J'espère qu'elle vous sera utile.
1. Description de l'erreur
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. Raison de l'erreur
J'utilise le composant Muse-UI, mais ce composant n'est pas installé ou introduit. , entraînant l'erreur
introuvable 3. Solution
(1) Installez Muse-UI
npm i muse-ui -S
(2) Présentez Muse-UI
import MuseUI from 'muse-ui'; import 'muse-ui/dist/muse-ui.css'; Vue.use(MuseUI);
Recommandations associées :
Comment déboguer js ? Comment déboguer js à l'aide de points d'arrêt
Js natif versus DOM Que peut-on être fait ? Comment faire fonctionner dom en utilisant js natif
Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!