HarmonyOS Cannot read property setMissionContinueState of undefined
Error message:Cannot read property setMissionContinueState of undefined
SourceCode:
context.setMissionContinueState(activeState).then(() => {
Stacktrace:
at setMissionContinueActive (libgeekapp/src/main/ets/utils/utils/WindowUtil.ets:91:5)
at aboutToAppear (libgeekapp/src/main/ets/index/IndexPage.ets:23:5)
at jump (libgeekapp/src/main/ets/splash/pages/SplashPage.ets:326:5)
at anonymous (libgeekapp/src/main/ets/splash/pages/SplashPage.ets:181:15)
}
堆栈跳转中在har中调用。
const context = (getContext(this) as common.UIAbilityContext);
context 提示undefined。
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS代码报错 cannot read property aboutToRender of undefined
294浏览 • 1回复 待解决
Cannot read property mediaUris of undefined怎么回事啊?
442浏览 • 1回复 待解决
升级RN到4.1.0.300版本之后运行报错Error message:Cannot read property isDebugModeEnabled of undefined
808浏览 • 1回复 待解决
项目编译报错TypeError: Cannot read properties of undefined (reading 'newFileToResourceList')
642浏览 • 1回复 待解决
HarmonyOS CustomDialog中的CustomDialogController 为undefined
306浏览 • 1回复 待解决
duplicate @Provide property with name userInfo.
1677浏览 • 1回复 待解决
HarmonyOS创建前置广角相机返回undefined
223浏览 • 1回复 待解决
HarmonyOS源码编译错误 importerror:cannot import name
4591浏览 • 1回复 已解决
HarmonyOS openCustomDialog返回的对话框id是undefined?
122浏览 • 1回复 待解决
使用fetch报错,fetch undefined
6976浏览 • 2回复 待解决
启动UIAbility时报“must have required property 'startWindowIcon'”错误
1724浏览 • 1回复 待解决
HarmonyOS申请ohos.permission.READ_WRITE_DOWNLOAD_DIRECTORY权限没有弹窗
238浏览 • 1回复 待解决
mysql 默认隔离级别是REPEATABLE-READ
3594浏览 • 1回复 待解决
Could not retrieve transation read-only status serve?
2232浏览 • 1回复 待解决
HarmonyOS 新API属性不能被定义为undefined吗?
307浏览 • 1回复 待解决
HarmonyOS 使用PersistentStorage存储持久化时,读取正常,调用时undefined
36浏览 • 1回复 待解决
HarmonyOS entry module中引用hsp报错cannot find record...
639浏览 • 1回复 待解决
如何获取单例为undefined
268浏览 • 1回复 待解决
求助 :Cannot reach HDC server, attempting to reconnect.
9453浏览 • 1回复 待解决
openharmony源码编译报错importerror:cannot import name
8510浏览 • 1回复 已解决
HSP包的context需要调用createModuleContext(‘包名’)才能获取。
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-inner-app-context-V5
因为开启了多个navigation栈导致的。