b***@qq.com
b***@qq.com
  • 发布:2024-12-31 12:12
  • 更新:2024-12-31 15:11
  • 阅读:37

【报Bug】@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets",

分类:鸿蒙Next

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 4.29

手机系统: HarmonyOS NEXT

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

手机厂商: 华为

手机机型: ipad

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

12:01:25.681 打包生成 .hap ...................
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.453 "@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets", but could not be resolved – treating it as an external dependency.
12:01:56.453 打包失败

操作步骤:

12:01:25.681 打包生成 .hap ...................
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.453 "@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets", but could not be resolved – treating it as an external dependency.
12:01:56.453 打包失败

预期结果:

12:01:25.681 打包生成 .hap ...................
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.453 "@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets", but could not be resolved – treating it as an external dependency.
12:01:56.453 打包失败

实际结果:

12:01:25.681 打包生成 .hap ...................
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.453 "@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets", but could not be resolved – treating it as an external dependency.
12:01:56.453 打包失败

bug描述:

12:01:25.681 打包生成 .hap ...................
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.452 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
12:01:56.453 "@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets", but could not be resolved – treating it as an external dependency.
12:01:56.453 打包失败

2024-12-31 12:12 负责人:无 分享
已邀请:
DCloud_云服务_MAQ

DCloud_云服务_MAQ

可能是 cli 项目关联的编译器的版本比较低导致的。建议先升级编译器的版本再重试。
https://uniapp.dcloud.net.cn/quickstart-cli.html#cliversion

要回复问题请先登录注册