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

componentDidCatchError微信正常 支付宝捕获不到错误 #4329

Closed
fanlvwen opened this issue Aug 29, 2019 · 4 comments
Closed

componentDidCatchError微信正常 支付宝捕获不到错误 #4329

fanlvwen opened this issue Aug 29, 2019 · 4 comments

Comments

@fanlvwen
Copy link

页面主动抛出错误:

let n = null
console.log('n:',n.charAt(5))

app.js中;

componentDidCatchError(err) {
console.log('componentDidCatchError:',err)
}

问题描述
以上代码运行会报错,微信能在componentDidCatchError中捕获到,支付宝不行
但是报错的代码 在支付宝原生的onError是能捕获到的

期望行为
支付宝能捕获异常

报错信息
image
这是支付宝ide捕获的错误日志

系统信息

image

补充信息
支付宝没做适配?

@taro-bot
Copy link

taro-bot bot commented Aug 29, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 29, 2019

@fanlvwen 复现不了

image

image

@fanlvwen
Copy link
Author

test.zip
@Chen-jj
这是新建的一个测试项目,run dev:alipay之后是抓取不到的,麻烦帮忙看一下

我发现我的支付宝控制台打印的ap/SDKVersion:是1.3.15 你的是1.18.3,这个是在哪里改的

@fanlvwen
Copy link
Author

更新到支付宝最新ide 能捕获异常了

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

No branches or pull requests

2 participants