如果官方不支持canvas 2d真机调试 那请问如何进行真机调试 比如双指缩放之类的
NodesRef.fields在真机报createView of undefined?wx.createSelectorQuery().in(this).select(`#customMap`).fields({ node: true, rect: true }, res => { console.log(res.node) }).exec() 这个api在在开发者工具上 还有手机预览模式有回调 正常调用 然而在真机调试却报一个错 如果这个api是直接在页面使用 就没报错 真机也可以拿到回调 但是在组件内部使用就报错 canvas不加type=2d就没问题 可以获取到一部分数据 但是加了就报错 [图片] [图片] [图片]
2020-10-17我也有这个问题 预览啥都可以 就真机调试报错 createView of undefined
真机调试错误,这是什么情况?怎么定位问题?VM21:2 (in promise) MiniProgramError Cannot read property 'createView' of undefined TypeError: Cannot read property 'createView' of undefined at n.value (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1064980) at n.value (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:757375) at t (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:757542) at n.value (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:757631) at eval (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1300784) at new Promise (<anonymous>) at pu (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1300746) at eval (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1302216) at Array.forEach (<anonymous>) at r (eval at n.call.document (http://127.0.0.1:51844/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1302194)
2020-10-17