Skip to content
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

微信小程序 onError 未捕获生命周期函数中的异常 #1093

Closed
hxzAugustinus opened this issue Dec 7, 2019 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@hxzAugustinus
Copy link

hxzAugustinus commented Dec 7, 2019

问题描述
编译成微信小程序后 onError函数 未捕获异常

复现步骤
当报错的代码在page生命周期函数里时,不会触发;在methods下定义的函数会触发
代码截图

预期结果
onError函数 有输出生命周期函数中的错误

实际结果
onError函数 无输出生命周期函数中的错误

系统信息:

  • 发行平台: 微信小程序
  • 操作系统 :微信开发者工具
  • HBuilderX版本 :2.4.2.20191115
  • uni-app v2.2.4
  • uni-app cli v2.0.0-24220191115006
@hxzAugustinus hxzAugustinus changed the title 微信小程序 onError 未捕获异常 微信小程序 onError 未捕获生命周期函数中的异常 Dec 11, 2019
@Wangyaqi Wangyaqi added the enhancement New feature or request label Dec 16, 2019
fxy060608 added a commit that referenced this issue Dec 31, 2019
@fxy060608 fxy060608 self-assigned this Dec 31, 2019
@dcloudhdx
Copy link
Contributor

更新HBuilderX 或 cli 已修复此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants