3***@qq.com
3***@qq.com
  • 发布:2020-08-10 10:55
  • 更新:2020-08-10 11:36
  • 阅读:2819

升级hbuilderx2.8.3后,修改的一个项目h5正常,安卓模拟器正常,ios真机模拟白屏,tabbar图标丢失,云打包报错

分类:uni-app

降为2.7.14版本后,问题依旧。

项目代码包打开后,提示caniuse-lite outdate后,执行过npm update,还是提示outdate,删除node-module/caniuse-lite包后,重新执行npm i caniuse-lite后,npm run serve正常无提示,目前H5正常,安卓模拟器正常,IOS真机模拟白屏,tabbar图标丢失,云打包报以下ERROR

[HBuilder] 08:42:12.447 ERROR TypeError: config.optimization.minimizer(...).tap is not a function
[HBuilder] 08:42:12.448 TypeError: config.optimization.minimizer(...).tap is not a function
[HBuilder] 08:42:12.454 at chainWebpack (E:\workspace\vue\uniapp\node_modules\@dcloudio\uni-app-plus\lib\uni.config.js:57:47)
[HBuilder] 08:42:12.455 at E:\workspace\vue\uniapp\node_modules\@dcloudio\vue-cli-plugin-uni\index.js:82:14
[HBuilder] 08:42:12.460 at E:\workspace\vue\uniapp\node_modules\@vue\cli-service\lib\Service.js:242:40
[HBuilder] 08:42:12.462 at Array.forEach (<anonymous>)
[HBuilder] 08:42:12.467 at Service.resolveChainableWebpackConfig (E:\workspace\vue\uniapp\node_modules\@vue\cli-service\lib\Service.js:242:26)
[HBuilder] 08:42:12.468 at PluginAPI.resolveChainableWebpackConfig (E:\workspace\vue\uniapp\node_modules\@vue\cli-service\lib\PluginAPI.js:151:25)
[HBuilder] 08:42:12.473 at module.exports (E:\workspace\vue\uniapp\node_modules\@vue\cli-service\lib\commands\build\resolveAppConfig.js:2:22)
[HBuilder] 08:42:12.474 at getWebpackConfig (E:\workspace\vue\uniapp\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:53:88)
[HBuilder] 08:42:12.478 at getWebpackConfigs (E:\workspace\vue\uniapp\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:89:32)
[HBuilder] 08:42:12.483 at build (E:\workspace\vue\uniapp\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:119:26)
[HBuilder] 08:42:12.484 at E:\workspace\vue\uniapp\node_modules\@dcloudio\vue-cli-plugin-uni\commands\build.js:44:11
[HBuilder] 08:42:12.488 at Service.run (E:\workspace\vue\uniapp\node_modules\@vue\cli-service\lib\Service.js:236:12)
[HBuilder] 08:42:12.489 at Object.<anonymous> (E:\workspace\vue\uniapp\node_modules\@vue\cli-service\bin\vue-cli-service.js:37:9)
[HBuilder] 08:42:12.495 at Module._compile (internal/modules/cjs/loader.js:1138:30)
[HBuilder] 08:42:12.495 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
[HBuilder] 08:42:12.502 at Module.load (internal/modules/cjs/loader.js:986:32)

2020-08-10 10:55 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com (作者) - 代码搬运工

刚问到一个解决办法,如图所示


注释后,可正常云打包

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