我的工程是基于Cli的,之前使用2.7.9版本,今天发现线上云打包app异常,无法正常使用.
只能通过npm update更新包,并且把HBuilder升级到最新的2.7.14稳定版.
再次提交云打包,提示以下错误,无法继续.求解,谢谢
错误信息:
HBuilder] 15:38:58.168 项目 'shop-mobile-v3' 开始编译...
[HBuilder] 15:38:59.085 编译器版本:2.7.14(v3)详见:https://ask.dcloud.net.cn/article/36599。
[HBuilder] 15:38:59.093 正在编译中...
[HBuilder] 15:39:00.902 ERROR TypeError: config.optimization.minimizer(...).tap is not a function
[HBuilder] 15:39:00.908 TypeError: config.optimization.minimizer(...).tap is not a function
[HBuilder] 15:39:00.914 at chainWebpack (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@dcloudio/uni-app-plus/lib/uni.config.js:57:47)
[HBuilder] 15:39:00.914 at /Users/yons/Documents/works/shop-mobile-v3/node_modules/@dcloudio/vue-cli-plugin-uni/index.js:82:14
[HBuilder] 15:39:00.930 at webpackChainFns.forEach.fn (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@vue/cli-service/lib/Service.js:242:40)
[HBuilder] 15:39:00.930 at Array.forEach (<anonymous>)
[HBuilder] 15:39:00.946 at Service.resolveChainableWebpackConfig (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@vue/cli-service/lib/Service.js:242:26)
[HBuilder] 15:39:00.946 at PluginAPI.resolveChainableWebpackConfig (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@vue/cli-service/lib/PluginAPI.js:151:25)
[HBuilder] 15:39:00.964 at module.exports (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:2:22)
[HBuilder] 15:39:00.964 at getWebpackConfig (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:53:88)
[HBuilder] 15:39:00.980 at getWebpackConfigs (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:89:32)
[HBuilder] 15:39:00.997 at build (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:119:26)
[HBuilder] 15:39:00.998 at api.registerCommand (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:44:11)
[HBuilder] 15:39:01.014 at Service.run (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@vue/cli-service/lib/Service.js:236:12)
[HBuilder] 15:39:01.016 at Object.<anonymous> (/Users/yons/Documents/works/shop-mobile-v3/node_modules/@vue/cli-service/bin/vue-cli-service.js:37:9)
[HBuilder] 15:39:01.032 at Module._compile (module.js:652:30)
[HBuilder] 15:39:01.032 at Object.Module._extensions..js (module.js:663:10)
[HBuilder] 15:39:01.050 at Module.load (module.js:565:32)
3 个回复
longwangsam - longwangsam
也有这个问题
3***@qq.com - 代码搬运工
最近也出现这个问题
3***@qq.com - 代码搬运工
https://ask.dcloud.net.cn/question/103621?item_id=134849&rf=false,看一下,刚找到的方法,试试