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

本篇文章给大家带来的内容是关于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:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsLeft.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsTop.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsTop.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsTop.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element:  - did you register the component correctly? For recursive components, make sure to provide the "name" option.found in--->  at srccomponentsTop.vue        at srcApp.vue         warn @ vue.runtime.esm.js?2b0e:587vue.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);

登录后复制

 相关推荐:

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

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

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

以上就是Vue.js模板报错该如何解决?Vue.js模板报错的解决方法的详细内容,更多请关注【创想鸟】其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。

发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/2743989.html

(0)
上一篇 2025年3月8日 03:14:02
下一篇 2025年3月8日 03:14:09

AD推荐 黄金广告位招租... 更多推荐

相关推荐

发表回复

登录后才能评论