New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component "pages/index" does not have a method "_proxy" to handle event "change" #2553
Comments
降级回 |
15版本啥bug,没注意 @fudiwei |
15 是组件中 $emit 事件传值方式发生 breaking changes(官方也没个说明,这还是我打断点发现的)。 14 以前的传参方式是: // 组件中事件参数
this.$emit('event', argument);
// 页面中接收事件参数
onMyEvent(e) {
console.log(e); // 直接取就是
} 从 15 开始就变成了: // 组件中事件参数
this.$emit('event', argument);
// 页面中接收事件参数
onMyEvent(e) {
console.log(e.$wx.detail.arguments[0]); // 变成这样了
} 16 是页面里调用不了组件的方法了,如果在 page 中打印一下 还有没有其他 Bug 我也还在测。 |
@fudiwei 15没留意,上线一周了 |
要同时升级 cli 和 core. 并非是 bug, 只是你升级了 core 却没有升级 cli. 后面会加入一种机制去限制 core 和 cli 的版本吧。 |
@Gcaufy cli 版本已经是 alpha.25 了(npm 中能看到的最新版本),一样有此问题;core 降级至 alpha.14 就没问题了。 |
close by cb6ea82 . |
参数以最新的文档为准 |
刚开始用就遇到这个问题了, 我要不要换成mpvue??? |
mpvue的性能不是很好,wepy2有点高冷就是了@Domines |
cli版本不一致会有问题 Tencent/wepy#2553
Description
[Description of the issue]
triggerEvent not work after this upgrade
Environment
Reproduce
[How to reproduce the issue]
Component "pages/index" does not have a method "_proxy" to handle event "change
More relavant error
Component "pages/index" does not have a method "_initComponent" to handle event "_init".
Component "pages/index" does not have a method "_proxy" to handle event "tap".
The text was updated successfully, but these errors were encountered: