TypeError: Cannot read property 'name' of undefined
11:30:30.695 at propertyPaths.forEach.propertyPath (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:86:41)
11:30:30.711 at Array.forEach (<anonymous>)
11:30:30.725 at processStyleObjectExpression (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:79:17)
11:30:30.726 at processStyle (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:128:11)
11:30:30.741 at processes.forEach.process (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
11:30:30.741 at Array.forEach (<anonymous>)
11:30:30.757 at traverseData (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
11:30:30.775 at Object.CallExpression (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:179:58)
11:30:30.776 at NodePath._call (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:55:20)
11:30:30.791 at NodePath.call (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:42:17)
11:30:30.808 at NodePath.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:31)
11:30:30.824 at TraversalContext.visitQueue (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:112:16)
11:30:30.840 at TraversalContext.visitSingle (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:84:19)
11:30:30.856 at TraversalContext.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:140:19)
11:30:30.871 at Function.traverse.node (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\index.js:84:17)
11:30:30.887 at NodePath.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:97:18)
11:30:33.519 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:30:33.536 Error: Compile failed at pages/product/components/maramlee-waterfalls-flow.vue
11:30:33.555 at compile (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
11:30:33.573 at actuallyCompile (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
11:30:33.574 at compileTemplate (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
11:30:33.592 at Object.module.exports (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
11:30:33.610 ERROR Build failed with errors.
- 发布:2021-04-06 12:21
- 更新:2021-08-10 11:00
- 阅读:884
产品分类: uniapp/小程序/QQ
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.1.7
第三方开发者工具版本号: 2.0
基础库版本号: 2.10.4
项目创建方式: HBuilderX
示例代码:
操作步骤:
运行-qq小程序
运行-qq小程序
预期结果:
编译成功
编译成功
实际结果:
TypeError: Cannot read property 'name' of undefined
11:30:30.695 at propertyPaths.forEach.propertyPath (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:86:41)
11:30:30.711 at Array.forEach (<anonymous>)
11:30:30.725 at processStyleObjectExpression (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:79:17)
11:30:30.726 at processStyle (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:128:11)
11:30:30.741 at processes.forEach.process (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
11:30:30.741 at Array.forEach (<anonymous>)
11:30:30.757 at traverseData (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
11:30:30.775 at Object.CallExpression (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:179:58)
11:30:30.776 at NodePath._call (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:55:20)
11:30:30.791 at NodePath.call (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:42:17)
11:30:30.808 at NodePath.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:31)
11:30:30.824 at TraversalContext.visitQueue (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:112:16)
11:30:30.840 at TraversalContext.visitSingle (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:84:19)
11:30:30.856 at TraversalContext.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:140:19)
11:30:30.871 at Function.traverse.node (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\index.js:84:17)
11:30:30.887 at NodePath.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:97:18)
11:30:33.519 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:30:33.536 Error: Compile failed at pages/product/components/maramlee-waterfalls-flow.vue
11:30:33.555 at compile (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
11:30:33.573 at actuallyCompile (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
11:30:33.574 at compileTemplate (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
11:30:33.592 at Object.module.exports (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
11:30:33.610 ERROR Build failed with errors.
TypeError: Cannot read property 'name' of undefined
11:30:30.695 at propertyPaths.forEach.propertyPath (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:86:41)
11:30:30.711 at Array.forEach (<anonymous>)
11:30:30.725 at processStyleObjectExpression (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:79:17)
11:30:30.726 at processStyle (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\style.js:128:11)
11:30:30.741 at processes.forEach.process (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
11:30:30.741 at Array.forEach (<anonymous>)
11:30:30.757 at traverseData (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
11:30:30.775 at Object.CallExpression (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:179:58)
11:30:30.776 at NodePath._call (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:55:20)
11:30:30.791 at NodePath.call (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:42:17)
11:30:30.808 at NodePath.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:31)
11:30:30.824 at TraversalContext.visitQueue (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:112:16)
11:30:30.840 at TraversalContext.visitSingle (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:84:19)
11:30:30.856 at TraversalContext.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:140:19)
11:30:30.871 at Function.traverse.node (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\index.js:84:17)
11:30:30.887 at NodePath.visit (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:97:18)
11:30:33.519 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:30:33.536 Error: Compile failed at pages/product/components/maramlee-waterfalls-flow.vue
11:30:33.555 at compile (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:140:13)
11:30:33.573 at actuallyCompile (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
11:30:33.574 at compileTemplate (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
11:30:33.592 at Object.module.exports (C:\Users\glodon-cm\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
11:30:33.610 ERROR Build failed with errors.
bug描述:
运行到微信小程序正常,qq、支付宝报错
陌上独雨 (作者)
同一项目,编译到微信小程序可用,编译到qq小程序编译报错
2021-04-06 15:59
DCloud_UNI_GSQ
回复 陌上独雨: 哪个项目?
2021-04-06 17:05
陌上独雨 (作者)
回复 DCloud_UNI_GSQ: 我自己本地的项目,编译到微信小程序可以,qq小程序失败
2021-04-06 17:29
DCloud_UNI_GSQ
回复 陌上独雨: 怎么能复现一下?
2021-04-07 11:43