首页 > 其他 > 详细

vue项目报错如下:(Emitted value instead of an instance of Error)

时间:2020-02-25 13:39:36      阅读:725      评论:0      收藏:0      [点我收藏+]
(Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The n
ot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.

解决方法

检查下你的列表组件里,slot 里的 <template> 上面有个 scope 属性,你改成 slot-scope

<template scope="xxx">yyyyyyyy</template>
改成

<template slot-scope="xxx">yyyyyyyy</template>
scope 属性在2.5以后的版本中已经废弃, 被 slot-scope 替代
slot-scope 不光可以用在 template 元素上,也可以用在其它元素

  

vue项目报错如下:(Emitted value instead of an instance of Error)

原文:https://www.cnblogs.com/lizhao123/p/12360593.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!