积分0 / 贡献0

提问1答案被采纳0文章0

作者动态

    Cannot find module '@ohos.hiSysEvent' or its corresponding type declarations

    有余ᯤ⁵ᴳ 显示全部楼层 发表于 昨天 10:42
    ### 【问题描述】


    > hvigor ERROR: Failed :entry:default@CompileArkTS...
    > hvigor ERROR: ArkTS Compiler Error
    > ERROR: ArkTS:ERROR File: /work/exam_v1.0.0/common/src/main/ets/manager/RdbStoreManager.ts:4:24
    > Cannot find module '@ohos.hiSysEvent' or its corresponding type declarations.

    ERROR: ArkTS:ERROR File: /work/exam_v1.0.0/entry/src/main/ets/Util/WindowManage.ts:31:19
    Property 'setCornerRadius' does not exist on type 'Window'.

    ERROR: ArkTS:ERROR File: /work/exam_v1.0.0/entry/src/main/ets/Util/WindowManage.ts:59:18
    Property 'hide' does not exist on type 'Window'.

    ERROR: ArkTS:ERROR File: /work/exam_v1.0.0/entry/src/main/ets/entryability/EntryAbility.ts:112:48
    Property 'hide' does not exist on type 'Window'.




    sdk 使用的4.1.7.8    ,4.1.7.5 也测试了

    `import hiSysEvent from '@ohos.hiSysEvent';`
    无法导入这个包


    ### 【运行环境】

    硬件:
    ROM版本:
    DevEvoStudio版本:4.1.0.400

    Command Line Tools: 2.0.0.2
    SDK版本:4.1.7.8

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

    返回顶部