pc端打开体验版小程序和预览都会出现如下报错,在手机上则可以正常预览和打开。
pc微信版本
报错如下
app-service.js: TypeError: Cannot read property 'customVersion' of undefined
at i.getAccountInfoSync (file://5.js/:2:1743907)
at i.function.i.(anonymous function) [as getAccountInfoSync] (file://5.js/:2:1403029)
at Object.57 (file://6.js/:4399:287)
at n (file://6.js/:4328:152)
at Object.50 (file://6.js/:4399:209)
at n (file://6.js/:4328:152)
at file://6.js/:4328:1350
at file://6.js/:4399:66
at h (file://5.js/:2:2197130)
at s (file://5.js/:2:2196389)
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
关注+1
https://developers.weixin.qq.com/community/develop/doc/000c8cefb70370ede63a9c80251000?highLine=customVersion
估计是getAccountInfoSync 运行失败,没有获取到值
关注!!!