8***@qq.com
8***@qq.com
  • 发布:2025-08-05 18:13
  • 更新:2025-08-06 08:57
  • 阅读:30

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',这样会导致这个问题

要回复问题请先登录注册