WASubContext.js?t=wechat&srouteDone with a webviewId 26 that is not the current

本文介绍如何通过在pages.json中配置lazyCodeLoading: requiredComponents来解决使用HBuilderx开发UniApp项目时,在微信开发者工具中出现的报错问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用HBuilderx开发uniapp项目,运行成功打开微信开发者工具时,会有一个报错,看着很烦

只需要在我们的pages.json中配置 "lazyCodeLoading": "requiredComponents ",这条语句就OK了,

再重新打开微信开发这工具就没有了,如果还有可以重新运行项目,目前我的是这样解决的.

"lazyCodeLoading": "requiredComponents",

ok!

TypeError: Cannot read property &#39;0&#39; of undefined at e (wxml.js?t=wechat&s=1741334816744&v=2846eba22032a2c32e545aa68beceac3:1) at h (wxml.js?t=wechat&s=1741334816744&v=2846eba22032a2c32e545aa68beceac3:1) at M (wxml.js?t=wechat&s=1741334816744&v=2846eba22032a2c32e545aa68beceac3:1) at m0 (<anonymous>:70:8) at <anonymous>:122:1 at Zn (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at t.bo.create (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at Function.b.prepare (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at Function.b._advancedCreate (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at c.createComponent (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) TypeError: Cannot read property &#39;0&#39; of undefined at e (wxml.js?t=wechat&s=1741334816744&v=2846eba22032a2c32e545aa68beceac3:1) at h (wxml.js?t=wechat&s=1741334816744&v=2846eba22032a2c32e545aa68beceac3:1) at M (wxml.js?t=wechat&s=1741334816744&v=2846eba22032a2c32e545aa68beceac3:1) at m0 (<anonymous>:70:8) at <anonymous>:122:1 at Zn (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at t.bo.create (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at Function.b.prepare (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at Function.b._advancedCreate (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1) at c.createComponent (WASubContext.js?t=wechat&s=1741334816744&v=3.7.10:1)(env: Windows,mp,1.06.2401020; lib: 3.7.10) Sat Mar 08 2025 14:34:39 GMT+0800 (中国标准时间) Page route 错误(system error) routeDone with a webviewId 136 that is not the current page(env: Windows,mp,1.06.2401020; lib: 3.7.10)这个微信小程序底部tabbar出了这个问题,如何解决
最新发布
03-09
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值