8***@qq.com
8***@qq.com
  • 发布:2025-08-05 18:13
  • 更新:2025-12-12 10:16
  • 阅读:185

App升级中心 uni-upgrade-center运行模拟器或真机都错误 最新版本0.9.7

分类:uni-app

18:01:46.732 项目 src 编译成功。
18:01:46.824 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\call-check-version.ts:94
18:01:46.825 TS2558:Expected 0 type arguments, but got 1.
18:01:46.825 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\call-check-version.ts:99
18:01:46.825 TS2304:Cannot find name 'UniCloudError'.
18:01:46.825 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\call-check-version.ts:105
18:01:46.825 TS18046:'e' is of type 'unknown'.
18:01:46.825 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:229
18:01:46.825 TS1005:'}' expected.
18:01:46.825 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:4
18:01:46.825 TS2307:Cannot find module '@/uni_modules/uts-openSchema' or its corresponding type declarations.
18:01:46.825 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:10
18:01:46.825 TS2355:A function whose declared type is neither 'void' nor 'any' must return a value.
18:01:46.825 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:81
18:01:46.825 TS2339:Property 'openDialogPage' does not exist on type 'Uni'.
18:01:46.826 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:84
18:01:46.826 TS7006:Parameter 'err' implicitly has an 'any' type.
18:01:46.826 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:121
18:01:46.826 TS2451:Cannot redeclare block-scoped variable 'confirmText'.
18:01:46.826 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:124
18:01:46.826 TS2451:Cannot redeclare block-scoped variable 'confirmText'.
18:01:46.826 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:207
18:01:46.826 TS2339:Property 'installApk' does not exist on type 'Uni'.
18:01:46.826 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:214
18:01:46.826 TS7006:Parameter 'err' implicitly has an 'any' type.

2025-08-05 18:13 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com (作者)

问题已解决,当只加了pages配置时,页面中还没有使用 import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update',这样会导致这个问题

  • x***@chongshitech.cn

    请问大佬具体是怎么解决的,我这边也遇到了相同的问题,真机和自定义基座都运行不了

    2025-11-27 16:22

  • 3***@qq.com

    我这边也是一样的问题,真机和自定义基座都运行报错,请问怎么处理的check-update.ts

    2025-12-01 18:00

y***@163.com

y***@163.com

请问一下是怎么解决的

h***@126.com

h***@126.com

大佬,能问下是怎么解决的吗

要回复问题请先登录注册