草庐IT

webviewId

全部标签

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

使用HBuilderx开发uniapp项目,运行成功打开微信开发者工具时,会有一个报错,看着很烦只需要在我们的pages.json中配置"lazyCodeLoading":"requiredComponents",这条语句就OK了,再重新打开微信开发这工具就没有了,如果还有可以重新运行项目,目前我的是这样解决的."lazyCodeLoading":"requiredComponents",ok!

uniapp运行时报错routeDone with a webviewId 1 that is not the current page

在开发微信小程序时使用HBuilderXuniapp开发运行时新手可能会出现routeDonewithawebviewId1thatisnotthecurrentpage这个报错,解决这个问题我们可以在微信小程序app.json文件中添加配置或者如果是uniapp对应的应该是pages.json文件。"lazyCodeLoading":"requiredComponents",添加这句重新编译一下应该问题就解决了