报错Property 'pushUrl' does not exist on type 'typeof router'.

已经导入了

import router from '@ohos.router'

但是查看了

报错Property 'pushUrl' does not exist on type 'typeof router'. -鸿蒙开发者社区

这里面的router的api,发现里面并没有pushUrl,但是项目是9版本的。

以前是没问题的,可能是因为换了full SDK,中间出错导致。

还有很多import也出错。


ArkTS
import
2023-11-10 20:10:30
浏览
收藏 0
回答 0
待解决
相关问题
The <canvas> component does not exist.
7159浏览 • 3回复 待解决
router.pushUrl 无法使用Map类型参数
41浏览 • 1回复 待解决
router.pushUrl是否无法使用Map类型参数
283浏览 • 1回复 待解决
duplicate @Provide property with name userInfo.
699浏览 • 1回复 待解决