在主域里使用了async 库,使用微信开放数据域子域后,打包报错。

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 20:59 697 0 全屏看文

AI助手支持GPT4.0

在主域里使用了async 库,使用微信开放数据域子域后,打包报错。
框架类型 问题类型 终端类型 微信版本 基础库版本
小游戏 Bug 工具 7.0.16 2.12.0

在主域里使用了async 库,使用微信开放数据域子域后,打包报错。因为使用 async库, 需要微信打包时,勾选 增强编译。但是勾选增强编译后,微信打包报错。如图

该如何解决问题。

Framework type problem type terminal type wechat version basic library version small game bug tool 7.0.16 2.12.0 uses async Library in the primary domain. After using wechat open data domain sub domain, it packages and reports errors. Because async library is used, when wechat package is needed, check enhance compilation. However, after checking the enhanced compilation, wechat packages report errors. As shown in the figure. How to solve the problem.

回答:

Forever:

为什么使用async库,开发者工具的增强编译模式就支持async啊

-EOF-

AI助手支持GPT4.0