1***@163.com
1***@163.com
  • 发布:2025-03-11 10:56
  • 更新:2025-03-11 16:28
  • 阅读:74

uni-upgrade-center-app 问题

分类:uni-app

我想使用 uni-upgrade-center-app 导入后 按照文档 引入 启动报错 使用的是uniapp vue2 没有ts 也按照文档更换了引入方式

[HBuilder] 10:46:04.229 正在进行 chetuyou_App [UNI00D5EF1] 的打包,可点此取消
[HBuilder] 10:46:23.423 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\call-check-version.ts:94
[HBuilder] 10:46:23.439 TS2558:Expected 0 type arguments, but got 1.
[HBuilder] 10:46:23.451 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\call-check-version.ts:99
[HBuilder] 10:46:23.463 TS2304:Cannot find name 'UniCloudError'.
[HBuilder] 10:46:23.472 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\call-check-version.ts:105
[HBuilder] 10:46:23.482 TS18046:'e' is of type 'unknown'.
[HBuilder] 10:46:23.493 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:229
[HBuilder] 10:46:23.503 TS1005:'}' expected.
[HBuilder] 10:46:23.513 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:4
[HBuilder] 10:46:23.523 TS2307:Cannot find module '@/uni_modules/uts-openSchema' or its corresponding type declarations.
[HBuilder] 10:46:23.526 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:10
[HBuilder] 10:46:23.538 TS2355:A function whose declared type is neither 'void' nor 'any' must return a value.
[HBuilder] 10:46:23.549 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:81
[HBuilder] 10:46:23.560 TS2339:Property 'openDialogPage' does not exist on type 'Uni'.
[HBuilder] 10:46:23.564 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:84
[HBuilder] 10:46:23.576 TS7006:Parameter 'err' implicitly has an 'any' type.
[HBuilder] 10:46:23.587 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:121
[HBuilder] 10:46:23.599 TS2451:Cannot redeclare block-scoped variable 'confirmText'.
[HBuilder] 10:46:23.611 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:124
[HBuilder] 10:46:23.623 TS2451:Cannot redeclare block-scoped variable 'confirmText'.
[HBuilder] 10:46:23.636 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:207
[HBuilder] 10:46:23.651 TS2339:Property 'installApk' does not exist on type 'Uni'.
[HBuilder] 10:46:23.666 [tsl] ERROR at uni_modules\uni-upgrade-center-app\utils\check-update.ts:214
[HBuilder] 10:46:23.679 TS7006:Parameter 'err' implicitly has an 'any' type.

2025-03-11 10:56 负责人:DCloud_UNI_LXH 分享
已邀请:
DCloud_UNI_LXH

DCloud_UNI_LXH

cli 吗?实测 hx 运行没有问题

  • 1***@163.com (作者)

    hx 创建的项目

    2025-03-12 14:00

  • DCloud_UNI_LXH

    回复 1***@163.com: hx 什么版本?升级中心什么版本?使用最新 hx alpha ,0.9.5 版本升级中心。没有复现你的问题

    2025-03-12 17:42

要回复问题请先登录注册