报错如下,这种错怎么看是什么原因呢?在微信开发者工具里的报错
[渲染层错误] TypeError: Cannot read property 'getBoundingClientRect' of undefined
at http://127.0.0.1:56547/__pageframe__/__dev__/beforebaselibready.js?t=wechat&s=1658909444969&v=2c0bb090b7ae2967fbf33d8a2a47e3b7:9:18121
at Array.forEach (<anonymous>)
at HTMLDocument.<anonymous> (http://127.0.0.1:56547/__pageframe__/__dev__/beforebaselibready.js?t=wechat&s=1658909444969&v=2c0bb090b7ae2967fbf33d8a2a47e3b7:9:18096)
at Object.triggerPageReRender (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:396536)
at go.onFinished (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2063024)
at go.flushBlocked (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2061434)
at go.unblock (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2061573)
at Module.Do (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2066871)
at Object.doInitRender (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2112062)
at Object.initRender (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2111064)(env: Windows,mp,1.06.2205231; lib: 2.25.1)
[渲染层错误] TypeError: Cannot read property 'getBoundingClientRect' of undefined
at http://127.0.0.1:56547/__pageframe__/__dev__/beforebaselibready.js?t=wechat&s=1658909444969&v=2c0bb090b7ae2967fbf33d8a2a47e3b7:9:18121
at Array.forEach (<anonymous>)
at HTMLDocument.<anonymous> (http://127.0.0.1:56547/__pageframe__/__dev__/beforebaselibready.js?t=wechat&s=1658909444969&v=2c0bb090b7ae2967fbf33d8a2a47e3b7:9:18096)
at http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:676573(env: Windows,mp,1.06.2205231; lib: 2.25.1)
[渲染层错误] TypeError: Cannot read property 'getBoundingClientRect' of undefined
at http://127.0.0.1:56547/__pageframe__/__dev__/beforebaselibready.js?t=wechat&s=1658909444969&v=2c0bb090b7ae2967fbf33d8a2a47e3b7:9:18121
at Array.forEach (<anonymous>)
at HTMLDocument.<anonymous> (http://127.0.0.1:56547/__pageframe__/__dev__/beforebaselibready.js?t=wechat&s=1658909444969&v=2c0bb090b7ae2967fbf33d8a2a47e3b7:9:18096)
at Object.triggerPageReRender (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:396536)
at go.onFinished (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2063024)
at a (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:2060179)
at j (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:1943474)
at http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:1944056
at http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:399812
at i (http://127.0.0.1:56547/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658909444969&v=2.25.1:1:336128)(env: Windows,mp,1.06.2205231; lib: 2.25.1)
3 个回复
DCloud_UNI_WZF
贴下代码或上传可复现demo
j***@qq.com
对啊,几乎一毛一样的报错,什么东东
varui
同样的问题