0

0

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

不言

不言

发布时间:2018-08-11 15:07:12

|

4822人浏览过

|

来源于php中文网

原创

本篇文章给大家带来的内容是关于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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Left.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Top.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Top.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Top.vue
        at src\App.vue
         
warn @ vue.runtime.esm.js?2b0e:587
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 src\components\Top.vue
        at src\App.vue
         
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

Magic Write
Magic Write

Canva旗下AI文案生成器

下载
import MuseUI from 'muse-ui';
import 'muse-ui/dist/muse-ui.css';

Vue.use(MuseUI);

 相关推荐:

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

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

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

相关专题

更多
高德地图升级方法汇总
高德地图升级方法汇总

本专题整合了高德地图升级相关教程,阅读专题下面的文章了解更多详细内容。

43

2026.01.16

全民K歌得高分教程大全
全民K歌得高分教程大全

本专题整合了全民K歌得高分技巧汇总,阅读专题下面的文章了解更多详细内容。

84

2026.01.16

C++ 单元测试与代码质量保障
C++ 单元测试与代码质量保障

本专题系统讲解 C++ 在单元测试与代码质量保障方面的实战方法,包括测试驱动开发理念、Google Test/Google Mock 的使用、测试用例设计、边界条件验证、持续集成中的自动化测试流程,以及常见代码质量问题的发现与修复。通过工程化示例,帮助开发者建立 可测试、可维护、高质量的 C++ 项目体系。

24

2026.01.16

java数据库连接教程大全
java数据库连接教程大全

本专题整合了java数据库连接相关教程,阅读专题下面的文章了解更多详细内容。

35

2026.01.15

Java音频处理教程汇总
Java音频处理教程汇总

本专题整合了java音频处理教程大全,阅读专题下面的文章了解更多详细内容。

16

2026.01.15

windows查看wifi密码教程大全
windows查看wifi密码教程大全

本专题整合了windows查看wifi密码教程大全,阅读专题下面的文章了解更多详细内容。

56

2026.01.15

浏览器缓存清理方法汇总
浏览器缓存清理方法汇总

本专题整合了浏览器缓存清理教程汇总,阅读专题下面的文章了解更多详细内容。

16

2026.01.15

ps图片相关教程汇总
ps图片相关教程汇总

本专题整合了ps图片设置相关教程合集,阅读专题下面的文章了解更多详细内容。

9

2026.01.15

ppt一键生成相关合集
ppt一键生成相关合集

本专题整合了ppt一键生成相关教程汇总,阅读专题下面的的文章了解更多详细内容。

26

2026.01.15

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
Vue 教程
Vue 教程

共42课时 | 6.7万人学习

国外Web开发全栈课程全集
国外Web开发全栈课程全集

共12课时 | 1.0万人学习

Vue.js 微实战--十天技能课堂
Vue.js 微实战--十天技能课堂

共18课时 | 1.1万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号