日志如下,浏览器编译运行正常,就是发行出现问题。编译的时候错误日志如下。以前的项目是编译正常的
项目 'meiyu-erp-mp' 开始发布h5...
[HBuilder] 12:03:03.565 项目 'meiyu-erp-mp' 开始编译...
[HBuilder] 12:03:42.180 Module build failed (from ./node_modules/postcss-loader/src/index.js):
[HBuilder] 12:03:42.181 TypeError: Cannot read property 'length' of undefined
[HBuilder] 12:03:42.190 at D:\dstproject\meiyu-erp-mp\pages\login\login.vue:200:2
[HBuilder] 12:03:42.190 at module.exports (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-value-parser\lib\unit.js:9:22)
[HBuilder] 12:03:42.197 at args.forEach (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:57:61)
[HBuilder] 12:03:42.198 at Array.forEach (<anonymous>)
[HBuilder] 12:03:42.211 at decl.value.walk.node (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:52:18)
[HBuilder] 12:03:42.212 at walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-value-parser\lib\walk.js:7:16)
[HBuilder] 12:03:42.228 at ValueParser.walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-value-parser\lib\index.js:18:3)
[HBuilder] 12:03:42.229 at optimise (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:40:64)
[HBuilder] 12:03:42.241 at D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:190:18
[HBuilder] 12:03:42.242 at D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:135:18
[HBuilder] 12:03:42.250 at Rule.each (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:101:16)
[HBuilder] 12:03:42.251 at Rule.walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:131:17)
[HBuilder] 12:03:42.262 at D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:148:24
[HBuilder] 12:03:42.262 at Root.each (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:101:16)
[HBuilder] 12:03:42.273 at Root.walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:131:17)
[HBuilder] 12:03:42.273 at Root.walkDecls (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:188:19)
[HBuilder] 12:03:42.283 at css (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:139:23)
[HBuilder] 12:03:42.284 Module build failed (from ./node_modules/postcss-loader/src/index.js):
[HBuilder] 12:03:42.293 TypeError: Cannot read property 'length' of undefined
[HBuilder] 12:03:42.294 at D:\dstproject\meiyu-erp-mp\pages\updata_input\updata_input.vue:248:2
[HBuilder] 12:03:42.302 at module.exports (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-value-parser\lib\unit.js:9:22)
[HBuilder] 12:03:42.303 at args.forEach (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:57:61)
[HBuilder] 12:03:42.311 at Array.forEach (<anonymous>)
[HBuilder] 12:03:42.311 at decl.value.walk.node (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:52:18)
[HBuilder] 12:03:42.320 at walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-value-parser\lib\walk.js:7:16)
[HBuilder] 12:03:42.321 at ValueParser.walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-value-parser\lib\index.js:18:3)
[HBuilder] 12:03:42.330 at optimise (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:40:64)
[HBuilder] 12:03:42.330 at D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:190:18
[HBuilder] 12:03:42.339 at D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:135:18
[HBuilder] 12:03:42.340 at Rule.each (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:101:16)
[HBuilder] 12:03:42.347 at Rule.walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:131:17)
[HBuilder] 12:03:42.349 at D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:148:24
[HBuilder] 12:03:42.357 at Root.each (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:101:16)
[HBuilder] 12:03:42.358 at Root.walk (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:131:17)
[HBuilder] 12:03:42.368 at Root.walkDecls (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-loader\node_modules\postcss\lib\container.js:188:19)
[HBuilder] 12:03:42.369 at css (D:\HBuilderX\plugins\uniapp-cli\node_modules\postcss-minify-gradients\dist\index.js:139:23)
[HBuilder] 12:03:42.377 ERROR Build failed with errors.
[HBuilder] 12:03:42.387 项目 'meiyu-erp-mp' 发布h5失败.
2 个回复
1***@qq.com (作者)
浏览器编译运行正常,就是发行出现问题。
DCloud_UNI_FXY
贴一下login.vue里的 css 代码
1***@qq.com (作者)
找到原因了,提交了bug:https://ask.dcloud.net.cn/question/80556
2019-10-17 16:13