https://ext.dcloud.net.cn/plugin?id=7996
这个项目导入HBuilderX,用小程序运行后HX控制台报错。
- 发布:2023-01-18 09:27
- 更新:2023-01-18 11:48
- 阅读:417
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.6.18
第三方开发者工具版本号: Stable 1.06.2301040
基础库版本号: 1
项目创建方式: HBuilderX
操作步骤:
预期结果:
不报错
不报错
实际结果:
TypeError: Cannot read properties of undefined (reading 'name')
08:58:33.109 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:104
08:58:33.116 at NodePath.findParent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\ancestry.js:24:9)
08:58:33.121 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:26
08:58:33.125 at Array.find (<anonymous>)
08:58:33.131 at findScoped (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:20:31)
08:58:33.139 at getMemberExpr (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:111:18)
08:58:33.144 at traverseRenderList (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\render-list.js:164:7)
08:58:33.150 at Object.CallExpression (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:222:11)
08:58:33.156 at NodePath._call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:46:20)
08:58:33.161 at NodePath.call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:36:17)
08:58:33.167 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:84:31)
08:58:33.173 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.173 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.179 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.184 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.191 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.196 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.202 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.202 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.208 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.212 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.218 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.223 at TraversalContext.visitSingle (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:72:19)
08:58:33.228 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:121:19)
08:58:33.234 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.240 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.245 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.250 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.256 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.261 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.267 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.273 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
TypeError: Cannot read properties of undefined (reading 'name')
08:58:33.109 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:104
08:58:33.116 at NodePath.findParent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\ancestry.js:24:9)
08:58:33.121 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:26
08:58:33.125 at Array.find (<anonymous>)
08:58:33.131 at findScoped (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:20:31)
08:58:33.139 at getMemberExpr (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:111:18)
08:58:33.144 at traverseRenderList (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\render-list.js:164:7)
08:58:33.150 at Object.CallExpression (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:222:11)
08:58:33.156 at NodePath._call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:46:20)
08:58:33.161 at NodePath.call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:36:17)
08:58:33.167 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:84:31)
08:58:33.173 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.173 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.179 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.184 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.191 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.196 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.202 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.202 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.208 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.212 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.218 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.223 at TraversalContext.visitSingle (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:72:19)
08:58:33.228 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:121:19)
08:58:33.234 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.240 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.245 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.250 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.256 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.261 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.267 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.273 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
bug描述:
只有这个项目报错,其他项目没出现报错
https://ext.dcloud.net.cn/plugin?id=7996
TypeError: Cannot read properties of undefined (reading 'name')
08:58:33.109 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:104
08:58:33.116 at NodePath.findParent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\ancestry.js:24:9)
08:58:33.121 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:26
08:58:33.125 at Array.find (<anonymous>)
08:58:33.131 at findScoped (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:20:31)
08:58:33.139 at getMemberExpr (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:111:18)
08:58:33.144 at traverseRenderList (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\render-list.js:164:7)
08:58:33.150 at Object.CallExpression (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:222:11)
08:58:33.156 at NodePath._call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:46:20)
08:58:33.161 at NodePath.call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:36:17)
08:58:33.167 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:84:31)
08:58:33.173 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.173 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.179 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.184 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.191 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.196 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.202 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.202 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.208 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.212 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.218 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.223 at TraversalContext.visitSingle (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:72:19)
08:58:33.228 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:121:19)
08:58:33.234 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.240 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.245 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
08:58:33.250 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
08:58:33.256 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
08:58:33.261 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
08:58:33.267 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
08:58:33.273 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
3 个回复
最佳回复
DCloud_UNI_LXH
Bug已修复,按照如下重新安装插件即可:
3***@qq.com (作者)
电脑重启,重新下载HX,都尝试过了,无效。
bug维修师
看的回复,临时解决一下
https://ask.dcloud.net.cn/question/161695
2023-01-18 09:45
3***@qq.com (作者)
回复 bug维修师: 多谢,我先去看看帖子。
2023-01-18 10:40
8***@qq.com
我都服了,好几次出现bug,运行到小程序 运行不了