TypeError: Cannot read property 'name' of undefined
15:18:22.800 at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/script/traverse/data/style.js:86:41
15:18:22.801 at Array.forEach (<anonymous>)
15:18:22.806 at processStyleObjectExpression (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/script/traverse/data/style.js:79:17)
15:18:22.806 at processStyle (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/script/traverse/data/style.js:128:11)
15:18:22.812 at /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/script/traverse/data/index.js:34:5
15:18:22.817 at Array.forEach (<anonymous>)
15:18:22.817 at traverseData (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/script/traverse/data/index.js:33:13)
15:18:22.822 at Object.CallExpression (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/script/traverse/visitor.js:186:58)
15:18:22.829 at NodePath._call (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:55:20)
15:18:22.830 at NodePath.call (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:42:17)
15:18:22.835 at NodePath.visit (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:90:31)
15:18:22.841 at TraversalContext.visitQueue (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:112:16)
15:18:22.845 at TraversalContext.visitMultiple (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:79:17)
15:18:22.845 at TraversalContext.visit (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/context.js:138:19)
15:18:22.850 at Function.traverse.node (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/index.js:84:17)
15:18:22.858 at NodePath.visit (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@babel/traverse/lib/path/context.js:97:18)
15:18:23.306 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
15:18:23.307 Error: Compile failed at uni_modules/uview-ui/components/u-navbar/u-navbar.vue
15:18:23.312 at compile (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/uni-template-compiler/lib/index.js:140:13)
15:18:23.312 at actuallyCompile (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/@vue/component-compiler-utils/dist/compileTemplate.js:70:96)
15:18:23.318 at compileTemplate (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/@vue/component-compiler-utils/dist/compileTemplate.js:31:16)
15:18:23.324 at Object.<anonymous> (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js:46:20)
找到/uni_modules/uview-ui/components/u-navbar
移出
重新运行就可以了。