编译微信小程序的时候发生错误,请大神们给点指点...
ERROR TypeError: Cannot read property 'name' of undefined
15:24:39.197 TypeError: Cannot read property 'name' of undefined
15:24:39.201 at Object.convertComponent (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:4796:46)
15:24:39.201 at tag (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:4838:25)
15:24:39.206 at convertAst (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:4977:15)
15:24:39.207 at C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:4982:20
15:24:39.211 at Array.map (<anonymous>)
15:24:39.212 at convertAst (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:4981:37)
15:24:39.217 at wxmlAst (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:5008:17)
15:24:39.218 at compileToWxml (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\mpvue-template-compiler\build.js:5127:15)
15:24:39.223 at compile (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\compile-to-template.js:33:9)
15:24:39.223 at Object.keys.forEach.filePath (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\generate-components-wxml.js:110:22)
15:24:39.230 at Array.forEach (<anonymous>)
15:24:39.239 at generateComponentsWxml (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\generate-components-wxml.js:72:26)
15:24:39.245 at Promise (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\index.js:128:11)
15:24:39.252 at new Promise (<anonymous>)
15:24:39.259 at compiler.hooks.emit.tapPromise.compilation (C:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\index.js:68:14)
15:24:39.267 at _err0 (eval at create (C:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:13:17)
1 个回复
g***@163.com - 搬运工
检查 vue 组件是不是跟 html 元素命名冲突了。修改重试看下。