码迷,mamicode.com
首页 > 其他好文 > 详细

did you register the component correctly? For recursive components, make sure to provide the "name"

时间:2020-06-22 01:22:11      阅读:71      评论:0      收藏:0      [点我收藏+]

标签:lazy   loading   问题   new   code   component   export   slist   图片   

报错截图:

技术图片

 

 在写一个折叠组件动画,引入该组件时,报了个这样的警告,组件死活引入不到,什么原因呢?

import ball from ‘../components/ball‘
export default {
  component: {
    ‘run-ball‘: ball 
  }
},
 
//使用
<run-ball :newslist="newslist"></run-ball>

上面是我的代码,引入,注册,使用,没有问题啊!

经过仔细对比代码,发现我用的component,应该是components,怪自己不仔细了!

did you register the component correctly? For recursive components, make sure to provide the "name"

标签:lazy   loading   问题   new   code   component   export   slist   图片   

原文地址:https://www.cnblogs.com/qingmuchuanqi48/p/13174903.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!