vue-awesome-swiper icon indicating copy to clipboard operation
vue-awesome-swiper copied to clipboard

$attrs is readonly

Open rickynull opened this issue 4 years ago • 5 comments

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. 😀

rickynull avatar Jun 30 '20 11:06 rickynull

up !

matschik avatar Jul 24 '20 14:07 matschik

up, someone say that it may be vue and UIcomponnent Version , update

Erimons-chan avatar Sep 25 '20 04:09 Erimons-chan

这是因为可能load了两个vue实例,具体可以看这个https://stackoverflow.com/questions/49585845/attrs-is-readonly-listeners-is-readonly-avoid-mutating-a-prop-directly

yimingjfe avatar Oct 29 '20 07:10 yimingjfe

也是踩坑了,不要用cnpm安装就好了,cnpm安装的(2.7.x)和我本地vue版本(2.6.10)不对.

换成npm就是一致版本了

u10k avatar Jan 06 '23 03:01 u10k

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

Evanl-lai avatar Feb 03 '23 08:02 Evanl-lai