a***@gmail.com
a***@gmail.com
  • 发布:2021-04-29 10:05
  • 更新:2021-04-29 10:09
  • 阅读:888

【免费解答一切uniapp问题】有问题都可以留言

分类:uni-app

互相促进吧,我解决你的问题,正好补全我的知识点的死角。

2021-04-29 10:05 负责人:无 分享
已邀请:
起風了

起風了

uni-app打包H5打包失败怎么办?
[HBuilder] 09:43:19.372 #
[HBuilder] 09:43:19.374 # Fatal error in , line 0
[HBuilder] 09:43:19.381 # API fatal error handler returned after process out of memory
[HBuilder] 09:43:19.382 #

m***@163.com

m***@163.com

uni-app使用typeScript打包报错,这个该如何解决?
ERROR in /data/spug/spug_api/repos/9_55_20210429100409/src/App.vue
7:3 No overload matches this call.
The last overload gave the following error.
Argument of type '{ mpType: string; onLaunch(): void; onShow(): void; methods: { updateApplet(): void; }; onHide(): void; }' is not assignable to parameter of type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>'.
Object literal may only specify known properties, and 'mpType' does not exist in type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>'.
5 |
6 | export default Vue.extend({

7 | mpType: 'app',
| ^
8 | onLaunch() {
9 | this.updateApplet()
10 | },
ERROR in /data/spug/spug_api/repos/9_55_20210429100409/src/App.vue
9:10 Property 'updateApplet' does not exist on type 'CombinedVueInstance<Vue, unknown, unknown, unknown, Readonly<Record<never, any>>>'.
7 | mpType: 'app',
8 | onLaunch() {
9 | this.updateApplet()
| ^
10 | },
11 | onShow() {
12 | },
No lint errors found
Version: typescript 3.9.9, tslint 5.20.1

  • 3***@qq.com

    同问,请问解决了吗

    2022-08-11 10:27

该问题目前已经被锁定, 无法添加新回复