报错Property 'pushUrl' does not exist on type 'typeof router'.
已经导入了
import router from '@ohos.router'
但是查看了
这里面的router的api,发现里面并没有pushUrl,但是项目是9版本的。
以前是没问题的,可能是因为换了full SDK,中间出错导致。
还有很多import也出错。
ArkTS
import
赞
收藏 0
回答 1
待解决
相关问题
BuildProfile自定义字段报错:Property 'BUILD_VERSION' does not exist on type 'typeof BuildProfile'
1760浏览 • 1回复 待解决
如何解决编译报错“Property xxx does not exist on type 'typeof BuildProfile'
6123浏览 • 1回复 待解决
HarmonyOS router pushUrl报错
1931浏览 • 1回复 待解决
在DevEco Studio中出现The <form> component does not exist.报错信息
7723浏览 • 1回复 待解决
code:9568305 error: dependent module does not exist.
4274浏览 • 1回复 待解决
The <canvas> component does not exist.
9820浏览 • 3回复 待解决
HarmonyOS 运行报错 code:9568305 error: dependent module does not exist.
1209浏览 • 1回复 待解决
启动UIAbility报The specified ability does not exist 错误是什么原因?
2462浏览 • 1回复 待解决
错误码9568305怎么处理,安装hap时报错:dependent module does not exist
2872浏览 • 1回复 待解决
HarmonyOS router.pushUrl跳转报100002
1783浏览 • 1回复 待解决
XTS测试 acts 提示 required device does not exist
12563浏览 • 4回复 待解决
HarmonyOS 集成态hsp 报错:error: Failed to install the HAP or HSP because the dependent module does not exist
2161浏览 • 1回复 待解决
HarmonyOS router.pushUrl使用基于Har
1115浏览 • 1回复 待解决
router.pushUrl 无法使用Map类型参数
1237浏览 • 1回复 待解决
HarmonyOS 在Windows下使用静态方式引入routeName会导致router.pushUrl等报错
882浏览 • 1回复 待解决
router.pushUrl是否无法使用Map类型参数
1655浏览 • 1回复 待解决
HarmonyOS代码报错 cannot read property aboutToRender of undefined
1693浏览 • 1回复 待解决
router的pushUrl、back等方法能否关闭转场动画?
1258浏览 • 1回复 待解决
HarmonyOS router.pushurl里不同模块之间的跳转
1248浏览 • 1回复 待解决
HarmonyOS 里面router.pushUrl(), HSP打开新的页面的时候,moduleName不对的情况下,不报错 ?
1027浏览 • 0回复 待解决
HarmonyOS router.pushUrl(), HSP打开新的页面的时候,moduleName不对的情况下,不报错
1926浏览 • 1回复 待解决
router.pushUrl()页面跳转后使用router.clear()导致屏幕白一下
1917浏览 • 0回复 待解决
今天遇到
同样的问题,求解