v-charts icon indicating copy to clipboard operation
v-charts copied to clipboard

vue 2.7 this._watchers is undefined in core.js

Open topmaxz opened this issue 1 year ago • 4 comments

Summary 简述

vue2工程升级到2.7后原v-charts页面会报错,如下图所示

打印this时也发现没有_watchers属性,只有_watcher

Expect 期望结果

希望尽快修复该错误,应该是比较简单的

Reproduce 重现示例

v-charts

topmaxz avatar Aug 08 '22 06:08 topmaxz

same error

fyzhu avatar Aug 08 '22 06:08 fyzhu

same error

cuimaomao0123 avatar Aug 16 '22 01:08 cuimaomao0123

@topmaxz @fyzhu @cuimaomao0123 修复看这里 https://github.com/ElemeFE/v-charts/issues/935#issuecomment-1336855229

Meqn avatar Dec 07 '22 13:12 Meqn

提供一个不修改源码的思路

在App入口文件, Vue对象实例化之前, 加入

Vue._watchers = Vue.prototype._watchers = []

多个Vue对象同理

Hwacc avatar Jan 30 '23 08:01 Hwacc