OpenHarmony开发者论坛

标题: Cannot find module '@ohos.hiSysEvent' or its corresponding type declarations [打印本页]

作者: 有余ᯤ⁵ᴳ    时间: 昨天 10:42
标题: Cannot find module '@ohos.hiSysEvent' or its corresponding type declarations
### 【问题描述】


> 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





欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5