xiemz
xiemz
  • 发布:2025-01-10 15:03
  • 更新:2025-01-10 16:18
  • 阅读:30

hbuilderx 4.36版本 uniapp 鸿蒙本地打包报错

分类:uni-app

hvigor ERROR: Failed :entry:default@CompileArkTS...
hvigor ERROR: Unexpected token (Note that you need plugins to import files that are not JavaScript)
\?\E:\work\jinmin\codenew\mzt\ggfwappmis\unpackage\release\com.soft.huawei.jmggfw\oh_modules.ohpm\@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=\oh_modules\@dcloudio\uni-app-runtime\src\main\ets\uni-mp-sdk\components\SafeAreaOffset.ets:1
1 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uts/uts.ets:8:39
Usage of 'ESObject' type is restricted (arkts-limited-esobj)

......

516 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/Map.ets:22:26
The system capacity of this api 'MapType' is not supported on all devices

517 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/Map.ets:22:34
The system capacity of this api 'STANDARD' is not supported on all devices

518 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/Map.ets:29:28
The system capacity of this api 'on' is not supported on all devices

519 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/Map.ets:39:5
The system capacity of this api 'MapComponent' is not supported on all devices

520 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/TabBar.ets:190:9
The @Prop property 'midButton' cannot be an optional parameter.
521 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/TabBar.ets:204:21
The regular property 'item!' cannot be assigned to the @ObjectLink property 'item'.
522 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/Picker.ets:113:9
The @Prop property 'range' cannot be an optional parameter.
523 WARN: ArkTS:WARN File: E:/work/jinmin/codenew/mzt/ggfwappmis/unpackage/release/com.neusoft.huawei.jmggfw/oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/components/Picker.ets:115:9
The @Prop property 'value' cannot be an optional parameter.
COMPILE RESULT:FAIL {ERROR:1 WARN:523}

hvigor ERROR: BUILD FAILED in 22 s 332 ms
14:53:10.083 安装包制作失败

2025-01-10 15:03 负责人:无 分享
已邀请:
DCloud_UNI_OttoJi

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信

看日志信息比较少,都是告警。先缩小下问题范围,删减下 pagesjson 和组件代码,看报错的位置是什么

  • xiemz (作者)

    解决了 谢谢

    2025-01-10 17:46

要回复问题请先登录注册