Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

vue 2.7 this._watchers is undefined in core.js #934

Open
topmaxz opened this issue Aug 8, 2022 · 4 comments
Open

vue 2.7 this._watchers is undefined in core.js #934

topmaxz opened this issue Aug 8, 2022 · 4 comments

Comments

@topmaxz
Copy link

topmaxz commented Aug 8, 2022

Summary 简述

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

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

Expect 期望结果

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

Reproduce 重现示例

v-charts

@fyzhu
Copy link

fyzhu commented Aug 8, 2022

same error

1 similar comment
@cuimaomao0123
Copy link

same error

@Marinerer
Copy link

@topmaxz @fyzhu @cuimaomao0123
修复看这里 #935 (comment)

@Hwacc
Copy link

Hwacc commented Jan 30, 2023

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

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

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

多个Vue对象同理

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants