6***@qq.com
6***@qq.com
  • 发布:2021-11-23 13:59
  • 更新:2021-12-01 16:13
  • 阅读:862

【报Bug】HBuilderX更新到3.2.16后运行支付宝小程序项目报错,回退回去运行正常

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 家庭中文版 20H2

HBuilderX版本号: 3.2.16

操作步骤:

manifest.json文件中

		"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)
2021-11-23 13:59 负责人:无 分享
已邀请:
9***@qq.com

9***@qq.com

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

该问题目前已经被锁定, 无法添加新回复