赵永强
赵永强
  • 发布:2023-01-18 09:16
  • 更新:2023-01-18 11:47
  • 阅读:864

【报Bug】更新hbx项目就无法启动了

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11 家庭中文版

HBuilderX类型: 正式

HBuilderX版本号: 3.6.18

手机系统: Android

手机系统版本号: Android 12

手机厂商: 华为

手机机型:

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

无法启动

预期结果:

正常启动

实际结果:

无法启动

bug描述:

TypeError: Cannot read properties of undefined (reading 'name')
09:11:35.546 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:104
09:11:35.554 at NodePath.findParent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\ancestry.js:24:9)
09:11:35.557 at D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:26:26
09:11:35.560 at Array.find (<anonymous>)
09:11:35.562 at findScoped (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:20:31)
09:11:35.566 at getMemberExpr (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:111:18)
09:11:35.569 at traverseRenderList (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\render-list.js:164:7)
09:11:35.574 at Object.CallExpression (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:222:11)
09:11:35.576 at NodePath._call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:46:20)
09:11:35.578 at NodePath.call (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:36:17)
09:11:35.579 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:84:31)
09:11:35.581 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.583 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
09:11:35.585 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
09:11:35.587 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.591 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.593 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.595 at TraversalContext.visitSingle (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:72:19)
09:11:35.598 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:121:19)
09:11:35.600 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.602 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.604 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.607 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
09:11:35.609 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
09:11:35.612 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.615 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.617 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.620 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
09:11:35.622 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
09:11:35.626 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.626 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.629 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.633 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
09:11:35.636 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
09:11:35.636 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.639 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.641 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.644 at TraversalContext.visitSingle (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:72:19)
09:11:35.646 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:121:19)
09:11:35.648 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.651 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.653 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.655 at TraversalContext.visitMultiple (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:67:17)
09:11:35.658 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:119:19)
09:11:35.660 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:11:35.663 at NodePath.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:52)
09:11:35.666 at TraversalContext.visitQueue (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:96:16)
09:11:35.668 at TraversalContext.visitSingle (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:72:19)
09:11:35.670 at TraversalContext.visit (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:121:19)
09:11:35.672 at traverseNode (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\traverse-node.js:18:17)
09:12:06.147 ​自定义组件 components/completeView/completeInfoView 建议移动到子包 community 内​
09:12:07.354 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
09:12:07.358 Error: Compile failed at subPackageB/pages/useInfo/clockRecord.vue
09:12:07.361 at compile (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:149:13)
09:12:07.364 at actuallyCompile (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
09:12:07.367 at compileTemplate (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
09:12:07.368 at Object.<anonymous> (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)

2023-01-18 09:16 负责人:无 分享
已邀请:
bug维修师

bug维修师

知道怎么临时修复这个bug,直接点击这个库的错误文件跳转修改这一行代码,判断不为undefined,然后再获取name属性
然后就可以了

  • 赵永强 (作者)

    改了,不行

    2023-01-18 10:54

  • n***@126.com

    回复 赵永强: 不应该是 && path.parentPath.node.callee!==undefined,应该是: && path.parentPath.node.callee 就好;或者 && typeof(path.parentPath.node.callee)!=='undefined'

    2023-01-18 16:56

  • 1***@qq.com

    感谢,可以了

    2023-02-06 10:22

抢走辣条还想跑

抢走辣条还想跑 - customUI组件库作者

同问

赵永强

赵永强 (作者) - 前端老菜鸟

而且无法切换上一个版本

DCloud_UNI_LXH

DCloud_UNI_LXH

Bug已修复,按照如下重新安装插件即可:

要回复问题请先登录注册