vue-awesome-swiper
vue-awesome-swiper copied to clipboard
$attrs is readonly
when import {Swiper, SwiperSlide} component, my project throw some error. like this
[Vue warn]: $attrs is readonly.
found in <SwiperSlide>
[Vue warn]: $listeners is readonly.
found in <SwiperSlide>
$attrs is readonly.
maybe wrong in here.
Come to consult, thx. 😀
up !
up, someone say that it may be vue and UIcomponnent Version , update
这是因为可能load了两个vue实例,具体可以看这个https://stackoverflow.com/questions/49585845/attrs-is-readonly-listeners-is-readonly-avoid-mutating-a-prop-directly
也是踩坑了,不要用cnpm安装就好了,cnpm安装的(2.7.x)和我本地vue版本(2.6.10)不对.
换成npm就是一致版本了
I have also encountered such cases, switch to 3.1.3 solved, but 3x switch data cannot be updated, 4.1.1 always report [Vue warn]: $listeners is readonly. May I ask if there is a solution? The problem upstairs has no effect on me