app.ts:
onError(error) {
logger.error(error)
wx.showModal({
title: '程序出错',
content: error,
confirmText: '重新启动'
}).then(({ confirm }) => {
if (confirm) {
wx.restartMiniProgram({ path: `/${Page.Home}` })
}
})
}
每次提交代码,审核人员都会遇到:
TypeError: Cannot read properties of undefined (reading \'referrerInfo\')
TypeError: Cannot read properties of undefined (reading \'referrerInfo\')
at R.init (<anonymous>:30:14074)
at WeixinJSCoreAndroid.subscribeHandler (<anonymous>:30:23460)
at <anonymous>:1:71
at <anonymous>:1:192
但是,我的业务代码中,从未读取过 referrerInfo ,不可能因为业务代码报这个错误(我也从未遇到过这个报错)。
We 分析后台的错误日志,发现这个报错全部都是来自于官方审核人员的 Android 测试机:
可以看到,基础库也没有低于 2.1.2 (低于该版本的基础库会返回 undefined ),讲道理的话,测试人员也不应该遇到这个报错。
请问,我要如何解决这个问题?
我这边已经连续四次因为这个原因发布被拒,前三次都申诉通过,这次申诉都被拒了。
你总不能让我注释掉 app.onError 吧?
