head-img Force's Blog

Taro框架开发微信小程序编译后报错:routeDone with a webviewId 18 that is not the current page(env: macOS,mp,1.06.2401020; lib: 3.2.5)

JavaScript

Taro框架开发微信小程序编译后报错routeDone with a webviewId 18 that is not the current page(env: macOS,mp,1.06.2401020; lib: 3.2.5)

WX20240212-174241@2x.png

解决办法:在app.config.js增加lazyCodeLoading : "requiredComponents",如下配置

export default defineAppConfig({
    pages: [
        'pages/index/index',
    ],
    window: {
        navigationBarTitleText: 'xxx',
    },
    tabBar: {
        list: [
            {
                pagePath: "pages/post/index",
            },
        ],
        custom: true,
    },
    lazyCodeLoading : "requiredComponents"
})

本文参考:https://blog.csdn.net/Ghjkku/article/details/128886330

点我评论
打赏本文
二维码


134

文章

14

标签

 访客统计  Update-0927-16:05

 网站信息