Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E216MicroMessenger/6.7.4(0x1607042c) NetType/WIFI Language/zh_CN 机型
在onError出现了错误 请官方给点建议和意见 多谢!!!!! 具体表现为
1.
appServiceSDKScriptError
undefined is not an object (evaluating 'Yn.env.USER_DATA_PATH')
2.
appServiceSDKScriptError
undefined is not an object (evaluating 't[e]'); at wx.getUserInfo
yt@https://lib/WAService.js:1:295275
getUserInfo@https://lib/WAService.js:1:528414
https://lib/WAService.js:1:537958
https://lib/WAService.js:1:537962
https://lib/WAService.js:1:297164
https://lib/WAService.js:1:537023
https://lib/WAService.js:1:537119
https://lib/WAService.js:1:255913
success@https://usr/app-service.js:43:1401
https://lib/WAService.js:1:536839
https://lib/WAService.js:1:101417
o@https://lib/WAService.js:1:250846
https://lib/WAService.js:1:251018
y@https://lib/WAService.js:1:1378
global code&version=1.2.6
微信小程序开发问题解答
微信小程序开发者回答:
undefined is not an object (evaluating 't[e]'); at wx.getUserInfo
我这周也开始见到一模一样的问题。跟本地代码无关,只是调用wx.getUserInfo的时候发生:
wx.getUserInfo({
lang: 'en',
complete: res => {
console.log(res)
if (res && res.userInfo) {
const { userInfo, encryptedData, iv } = res
resolve({
userInfo, encryptedData, iv
})
} else {
reject()
}
}
})
本文网址:http://www.91bianli.com/weixinxiaochengxu/42352.html