vant-weapp
vant-weapp copied to clipboard
[Bug Report] 体验版报错,开发版和真机调整均正常
重现链接
(in promise) MiniProgramError
o is not a function
TypeError: o is not a function
at t (appservice.app.js:40:145)
at exports.isObj (appservice.app.js:66:587)
at xi.isDisabled (@vant/weapp/picker-column/index.appservice.js:2:1486)
at xi.adjustIndex (@vant/weapp/picker-column/index.appservice.js:2:1349)
at xi.setIndex (@vant/weapp/picker-column/index.appservice.js:2:1657)
at (@vant/weapp/picker-column/index.appservice.js:2:618)
Vant Weapp 版本
1.11.7
描述一下你遇到的问题。
开发者工具里和真机调试都是正常的,上传到预览版打开就报错,不知道什么原因
(in promise) MiniProgramError
o is not a function
TypeError: o is not a function
at t (appservice.app.js:40:145)
at exports.isObj (appservice.app.js:66:587)
at xi.isDisabled (@vant/weapp/picker-column/index.appservice.js:2:1486)
at xi.adjustIndex (@vant/weapp/picker-column/index.appservice.js:2:1349)
at xi.setIndex (@vant/weapp/picker-column/index.appservice.js:2:1657)
at (@vant/weapp/picker-column/index.appservice.js:2:618)
只搜索到这个情况和我目前比较像,但无人回答https://developers.weixin.qq.com/community/develop/doc/0002c2a81801886228905466e67000
尝试把app.json里的"lazyCodeLoading": "requiredComponents"改为"renderer": "webview",开发者工具里和真机调试依旧正常,体验版报错更多了,报错如下:
重现步骤
- 打开预览版
- 发现点击事件均失效
- 打开控制台发现报错
设备/浏览器
微信8.0.49 / 小米 14 / HyperOS 2.0.101.0
你这个错误结合了业务代码看不出来,可以做这个简单的代码片试试,能复现的话就好排查了