uni-app HBuilderX更新到3.2.16后运行支付宝小程序项目报错 回退正常

uni-app HBuilderX更新到3.2.16后运行支付宝小程序项目报错 回退正常

开发环境 版本号 项目创建方式
Windows Windows 10 家庭中文版 20H2 -
HBuilderX 3.2.16 -

操作步骤:

{
    "usingComponents": true,
    "appid": "30*****52",
    "component2": true,
    "enableDistFileMinify": true,
    "plugins": {
        "benefit": {
            "version": "0.0.12",
            "provider": "30000***26202"
        },
        "toufang": {
            "version": "0.0.6",
            "provider": "3000***5098104"
        },
        "task": {
            "version": "*",
            "provider": "300000***173"
        }
    }
}

如果配置有plugins插件配置 就会运行报错

预期结果:

能正常运行

实际结果:

af-appx.worker.min.js:10631 Uncaught TypeError: Cannot read property 'pluginId' of undefined
    at OptionRegistry.registerMiniExtensionConfig (af-appx.worker.min.js:10631)
    at Object.<anonymous> (index.worker.js:1)
    at o (index.worker.js:1)
    at Object.<anonymous> (index.worker.js:1)
    at o (index.worker.js:1)
    at index.worker.js:1
    at index.worker.js:1
af-appx.worker.min.js:5760 Uncaught TypeError: Cannot read property 'setBridge' of undefined
    at Object._ (moxi-prize.js:632)
    at __webpack_require__ (runtime.js:92)
    at Module._ (moxi-prize.js:136)
    at __webpack_require__ (runtime.js:92)
    at Module._ (moxi-prize.js:13)
    at __webpack_require__ (runtime.js:92)
    at Object.componentsMoxiPrizeMoxiPrizeCreateComponent (moxi-prize.js:1653)
    at __webpack_require__ (runtime.js:92)
    at checkDeferredModules (runtime.js:48)
    at Array.webpackJsonpCallback [as push] (runtime.js:35)

bug描述:

更新HBuilder X 到3.2.16 后,运行支付宝小程序模拟器,编译成功,但是在支付宝小程序开发者工具运行报错,原3.2.9版本 运行正常

af-appx.worker.min.js:10631 Uncaught TypeError: Cannot read property 'pluginId' of undefined
    at OptionRegistry.registerMiniExtensionConfig (af-appx.worker.min.js:10631)
    at Object.<anonymous> (index.worker.js:1)
    at o (index.worker.js:1)
    at Object.<anonymous> (index.worker.js:1)
    at o (index.worker.js:1)
    at index.worker.js:1
    at index.worker.js:1
af-appx.worker.min.js:5760 Uncaught TypeError: Cannot read property 'setBridge' of undefined
    at Object._ (moxi-prize.js:632)
    at __webpack_require__ (runtime.js:92)
    at Module._ (moxi-prize.js:136)
    at __webpack_require__ (runtime.js:92)
    at Module._ (moxi-prize.js:13)
    at __webpack_require__ (runtime.js:92)
    at Object.componentsMoxiPrizeMoxiPrizeCreateComponent (moxi-prize.js:1653)
    at __webpack_require__ (runtime.js:92)
    at checkDeferredModules (runtime.js:48)
    at Array.webpackJsonpCallback [as push] (runtime.js:35)

更多关于uni-app HBuilderX更新到3.2.16后运行支付宝小程序项目报错 回退正常的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于uni-app HBuilderX更新到3.2.16后运行支付宝小程序项目报错 回退正常的实战教程也可以访问 https://www.itying.com/category-93-b0.html


相同的问题,升级cli编译器2.0.0-32920211122002后,支付宝小程序运行报错; 回退到2.0.0-32920211029004版本后,支付宝小程序运行正常

回到顶部