b***@qq.com
b***@qq.com
  • 发布:2024-11-23 01:43
  • 更新:2024-11-23 01:43
  • 阅读:14

【报Bug】打包鸿蒙app报错hvigor ERROR: ArkTS:ERROR Failed to execute es2abc

分类:鸿蒙Next

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 4.29

手机系统: HarmonyOS NEXT

手机系统版本号: HarmonyOS NEXT Developer Beta2

手机厂商: 模拟器

手机机型: 华为

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

01:05:23.044 项目 myvue 编译成功。
01:05:23.127 打包生成 .app ............
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.071 > hvigor ERROR: ArkTS:ERROR Failed to execute es2abc.
Error Message: SyntaxError: Unexpected token, expected '}'.

操作步骤:

01:05:23.044 项目 myvue 编译成功。
01:05:23.127 打包生成 .app ............
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.071 > hvigor ERROR: ArkTS:ERROR Failed to execute es2abc.
Error Message: SyntaxError: Unexpected token, expected '}'.

预期结果:

01:05:23.044 项目 myvue 编译成功。
01:05:23.127 打包生成 .app ............
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.071 > hvigor ERROR: ArkTS:ERROR Failed to execute es2abc.
Error Message: SyntaxError: Unexpected token, expected '}'.

实际结果:

01:05:23.044 项目 myvue 编译成功。
01:05:23.127 打包生成 .app ............
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.071 > hvigor ERROR: ArkTS:ERROR Failed to execute es2abc.
Error Message: SyntaxError: Unexpected token, expected '}'.

bug描述:

01:05:23.044 项目 myvue 编译成功。
01:05:23.127 打包生成 .app ............
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.070 > hvigor WARN: The current module 'myvue.huawei.com' has dependency which is not installed at its oh-package.json5.
01:06:10.071 > hvigor ERROR: ArkTS:ERROR Failed to execute es2abc.
Error Message: SyntaxError: Unexpected token, expected '}'.

2024-11-23 01:43 负责人:无 分享
已邀请:

要回复问题请先登录注册