APP和H5都没有问题,发行至微信小程序报错,这种错误如何排查?
[HBuilder] 14:55:55.975 小程序各家浏览器内核及自定义组件实现机制存在差异,可能存在样式布局兼容问题,参考:https://uniapp.dcloud.io/matter?id=mp
[HBuilder] 14:55:55.986 正在编译中...
[HBuilder] 14:56:01.280 TypeError: Property value expected type of string but got null
[HBuilder] 14:56:01.285 at Object.validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\definitions\utils.js:160:13)
[HBuilder] 14:56:01.285 at validateField (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:24:9)
[HBuilder] 14:56:01.293 at validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:17:3)
[HBuilder] 14:56:01.300 at builder (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\builder.js:38:27)
[HBuilder] 14:56:01.307 at Object.StringLiteral (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\generated\index.js:350:31)
[HBuilder] 14:56:01.313 at parseEventByCallExpression (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:177:30)
[HBuilder] 14:56:01.320 at exprStatements.forEach.exprStatement (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:302:15)
[HBuilder] 14:56:01.328 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.336 at valuePath.forEach.funcPath (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:301:28)
[HBuilder] 14:56:01.337 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.347 at parseEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:242:15)
[HBuilder] 14:56:01.347 at _processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:416:9)
[HBuilder] 14:56:01.357 at processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:477:5)
[HBuilder] 14:56:01.357 at processes.forEach.process (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
[HBuilder] 14:56:01.367 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.367 at traverseData (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
[HBuilder] 14:56:01.400 TypeError: Property value expected type of string but got null
[HBuilder] 14:56:01.411 at Object.validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\definitions\utils.js:160:13)
[HBuilder] 14:56:01.411 at validateField (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:24:9)
[HBuilder] 14:56:01.424 at validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:17:3)
[HBuilder] 14:56:01.424 at builder (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\builder.js:38:27)
[HBuilder] 14:56:01.437 at Object.StringLiteral (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\generated\index.js:350:31)
[HBuilder] 14:56:01.441 at parseEventByCallExpression (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:177:30)
[HBuilder] 14:56:01.455 at exprStatements.forEach.exprStatement (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:302:15)
[HBuilder] 14:56:01.467 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.480 at valuePath.forEach.funcPath (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:301:28)
[HBuilder] 14:56:01.481 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.493 at parseEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:242:15)
[HBuilder] 14:56:01.493 at _processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:416:9)
[HBuilder] 14:56:01.506 at processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:477:5)
[HBuilder] 14:56:01.520 at processes.forEach.process (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
[HBuilder] 14:56:01.532 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.545 at traverseData (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
[HBuilder] 14:56:01.698 TypeError: Property value expected type of string but got null
[HBuilder] 14:56:01.710 at Object.validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\definitions\utils.js:160:13)
[HBuilder] 14:56:01.721 at validateField (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:24:9)
[HBuilder] 14:56:01.722 at validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:17:3)
[HBuilder] 14:56:01.733 at builder (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\builder.js:38:27)
[HBuilder] 14:56:01.746 at Object.StringLiteral (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\generated\index.js:350:31)
[HBuilder] 14:56:01.758 at parseEventByCallExpression (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:177:30)
[HBuilder] 14:56:01.770 at exprStatements.forEach.exprStatement (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:302:15)
[HBuilder] 14:56:01.783 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.797 at valuePath.forEach.funcPath (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:301:28)
[HBuilder] 14:56:01.797 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.810 at parseEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:242:15)
[HBuilder] 14:56:01.811 at _processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:416:9)
[HBuilder] 14:56:01.822 at processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:477:5)
[HBuilder] 14:56:01.835 at processes.forEach.process (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
[HBuilder] 14:56:01.848 at Array.forEach (<anonymous>)
[HBuilder] 14:56:01.859 at traverseData (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
[HBuilder] 14:56:06.499 TypeError: Property value expected type of string but got null
[HBuilder] 14:56:06.510 at Object.validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\definitions\utils.js:160:13)
[HBuilder] 14:56:06.522 at validateField (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:24:9)
[HBuilder] 14:56:06.522 at validate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:17:3)
[HBuilder] 14:56:06.534 at builder (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\builder.js:38:27)
[HBuilder] 14:56:06.545 at Object.StringLiteral (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\generated\index.js:350:31)
[HBuilder] 14:56:06.557 at parseEventByCallExpression (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:177:30)
[HBuilder] 14:56:06.569 at exprStatements.forEach.exprStatement (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:302:15)
[HBuilder] 14:56:06.580 at Array.forEach (<anonymous>)
[HBuilder] 14:56:06.591 at valuePath.forEach.funcPath (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:301:28)
[HBuilder] 14:56:06.603 at Array.forEach (<anonymous>)
[HBuilder] 14:56:06.603 at parseEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:242:15)
[HBuilder] 14:56:06.615 at _processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:416:9)
[HBuilder] 14:56:06.626 at processEvent (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:477:5)
[HBuilder] 14:56:06.639 at processes.forEach.process (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
[HBuilder] 14:56:06.650 at Array.forEach (<anonymous>)
[HBuilder] 14:56:06.663 at traverseData (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
[HBuilder] 14:56:13.660 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
[HBuilder] 14:56:13.672 Error: Compile failed at pages/company/company/company.vue
[HBuilder] 14:56:13.684 at compile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
[HBuilder] 14:56:13.696 at actuallyCompile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
[HBuilder] 14:56:13.696 at compileTemplate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
[HBuilder] 14:56:13.708 at Object.module.exports (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
[HBuilder] 14:56:13.720 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
[HBuilder] 14:56:13.731 Error: Compile failed at pages/company/delivery/delivery.vue
[HBuilder] 14:56:13.742 at compile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
[HBuilder] 14:56:13.754 at actuallyCompile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
[HBuilder] 14:56:13.754 at compileTemplate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
[HBuilder] 14:56:13.765 at Object.module.exports (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
[HBuilder] 14:56:13.778 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
[HBuilder] 14:56:13.789 Error: Compile failed at pages/company/index/index.vue
[HBuilder] 14:56:13.800 at compile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
[HBuilder] 14:56:13.801 at actuallyCompile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
[HBuilder] 14:56:13.813 at compileTemplate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
[HBuilder] 14:56:13.825 at Object.module.exports (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
[HBuilder] 14:56:13.836 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
[HBuilder] 14:56:13.848 Error: Compile failed at pages/personal/resume/resume.vue
[HBuilder] 14:56:13.859 at compile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
[HBuilder] 14:56:13.871 at actuallyCompile (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
[HBuilder] 14:56:13.871 at compileTemplate (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
[HBuilder] 14:56:13.883 at Object.module.exports (E:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
[HBuilder] 14:56:13.895 ERROR Build failed with errors.
2 个回复
5***@qq.com
同问,楼主解决了吗?
5***@qq.com
这编译提示一点作用都没有。