小程序
小游戏
企业微信
微信支付
扫描小程序码分享
scroll-view bindtouchstart bindtouchend 不走回调。真机走回调
enablePullDownRefresh 属性设置无效 onPullDownRefresh onReachBottom 不走回调
真机调试情况下。100%出现问题,公司同事手机都试过了。无法真机调试。
上一个版本 仅仅是真机无法调适问题。今天更新了版本想着问题会得到解决。然后发现。更多的BUG出现。基础的方法都得不到回调,无法开发了。招个测试人员吧
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
真机调试,Mac 上我这边绝对会出现楼主那一长串报错,16 个,有时 17 有时 18。这个 IDE 真的奇葩。。。早已无法真机调试,导致我们开发测试进度严重阻塞。
刷到这个问题的时候,随手点一次真机调试~~~~~~~~~~
[publib]:145 error run publib TypeError: Cannot read property 'toLowerCase' of undefined
at a.v ([publib]:1)
at new a ([publib]:1)
at [publib]:1
at Object.u [as onReady] ([publib]:1)
at Object.<anonymous> ([publib]:1)
at o ([publib]:1)
at __waServiceInit__ ([publib]:1)
at __doWAServiceInit__ ([publib]:1)
value @ [publib]:145
[publib]:832 ReferenceError: define is not defined
at weapp:///libs/qqmap-wx-jssdk.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
at weapp:///utils/util.js:1
at weapp:///app.js:1
at weapp:///component/paymentmodal/paymentmodal.js:1
at weapp:///component/temporarilymodal/temporarilymodal.js:1
at weapp:///pages/index/index.js:1
at weapp:///pages/agreement/agreement.js:1
at weapp:///pages/usercenter/usercenter.js:1
at weapp:///pages/pledgecash/pledgecash.js:1
at weapp:///pages/orderdetail/orderdetail.js:1
at orders.js:1
at login.js:1
at payment.js:1
[publib]:1 gameSDKScriptError
Cannot read property 'getNetworkType' of undefined;at private.reportEnterForeground
TypeError: Cannot read property 'getNetworkType' of undefined
at Sy ([publib]:1:545827)
at Function.<anonymous> ([publib]:1:546270)
at [publib]:1:319131
at Timeout._onTimeout ([publib]:1:546729)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
errorReport @ [publib]:1
at Function.<anonymous> ([publib]:1:319131)
at Bt.<anonymous> ([publib]:1:101865)
at Bt.emit ([publib]:1:314089)
at Object.emit ([publib]:1:333338)
at Oy ([publib]:1:547283)
at Timeout._onTimeout ([publib]:1:547941)
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
补充BUG,模拟器 app.json中
"tabBar": {
"color": "#5e5e5e",
"selectedColor": "#ff2a25",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/images/tabBar/home.png",
"selectedIconPath": "/images/tabBar/home_hl.png"
},
}
selectedIconPath 无效. 模拟器仅仅展示了 iconPath的文件目录。仅拷贝的部分代码。
问题附属图片
报错 “Component not found” 的问题,可否提供一个简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
我截图了 我文件也在的。我应该提供怎样的代码片段
真机跑没问题。模拟器也没问题。真机调试有问题。
你这些事件写到组件里了吗?
什么事件?
bindtouchstart bindtouchend
bindtouchstart bindtouchend 没有写在组件里面
这个问题是最近几版IDE才出现的问题。我这些都是老代码,今天去看的时候,才发现这样的问题
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
真机调试,Mac 上我这边绝对会出现楼主那一长串报错,16 个,有时 17 有时 18。这个 IDE 真的奇葩。。。早已无法真机调试,导致我们开发测试进度严重阻塞。
刷到这个问题的时候,随手点一次真机调试~~~~~~~~~~
[publib]:145 error run publib TypeError: Cannot read property 'toLowerCase' of undefined
at a.v ([publib]:1)
at new a ([publib]:1)
at [publib]:1
at Object.u [as onReady] ([publib]:1)
at Object.<anonymous> ([publib]:1)
at o ([publib]:1)
at [publib]:1
at __waServiceInit__ ([publib]:1)
at __doWAServiceInit__ ([publib]:1)
at [publib]:1
value @ [publib]:145
[publib]:832 ReferenceError: define is not defined
at weapp:///libs/qqmap-wx-jssdk.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///utils/util.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///app.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///component/paymentmodal/paymentmodal.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///component/temporarilymodal/temporarilymodal.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///pages/index/index.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///pages/agreement/agreement.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///pages/usercenter/usercenter.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///pages/pledgecash/pledgecash.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at weapp:///pages/orderdetail/orderdetail.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at orders.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at login.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:832 ReferenceError: define is not defined
at payment.js:1
at ContextifyScript.Script.runInContext (vm.js:59)
at Object.runInContext (vm.js:120)
at loadCode ([publib]:826)
at handleInitUserCode ([publib]:810)
at handleSetupContext ([publib]:1220)
at handleProcessMessage ([publib]:1229)
at WebSocket.ws.on ([publib]:1457)
at emitOne (events.js:115)
at WebSocket.emit (events.js:210)
loadCode @ [publib]:832
[publib]:1 gameSDKScriptError
Cannot read property 'getNetworkType' of undefined;at private.reportEnterForeground
TypeError: Cannot read property 'getNetworkType' of undefined
at Sy ([publib]:1:545827)
at Function.<anonymous> ([publib]:1:546270)
at [publib]:1:319131
at Timeout._onTimeout ([publib]:1:546729)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
at Timer.listOnTimeout (timers.js:266:5)
errorReport @ [publib]:1
[publib]:1 gameSDKScriptError
Cannot read property 'getNetworkType' of undefined;at private.reportEnterForeground
TypeError: Cannot read property 'getNetworkType' of undefined
at Sy ([publib]:1:545827)
at Function.<anonymous> ([publib]:1:546270)
at Function.<anonymous> ([publib]:1:319131)
at Bt.<anonymous> ([publib]:1:101865)
at Bt.emit ([publib]:1:314089)
at Object.emit ([publib]:1:333338)
at Oy ([publib]:1:547283)
at Timeout._onTimeout ([publib]:1:547941)
at ontimeout (timers.js:471:11)
at tryOnTimeout (timers.js:306:5)
errorReport @ [publib]:1
补充BUG,模拟器 app.json中
"tabBar": {
"color": "#5e5e5e",
"selectedColor": "#ff2a25",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/images/tabBar/home.png",
"selectedIconPath": "/images/tabBar/home_hl.png"
},
}
selectedIconPath 无效. 模拟器仅仅展示了 iconPath的文件目录。仅拷贝的部分代码。
问题附属图片
报错 “Component not found” 的问题,可否提供一个简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
我截图了 我文件也在的。我应该提供怎样的代码片段
真机跑没问题。模拟器也没问题。真机调试有问题。
你这些事件写到组件里了吗?
什么事件?
bindtouchstart bindtouchend
bindtouchstart bindtouchend 没有写在组件里面
这个问题是最近几版IDE才出现的问题。我这些都是老代码,今天去看的时候,才发现这样的问题