[广告] 21:06:02.031 开源不易,需要鼓励。去给 uni-app 项目 点个 star 吧 [不再提示]
[广告] 21:06:02.032 DCloud 2022新春招聘开启,欢迎前端、Android、C++/QT来投简历! 详情点击
21:06:02.089 项目 'wisdom-tree' 开始编译...
21:06:02.709 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
21:06:02.775 正在编译中...
21:06:03.279 INFO Starting development server...
21:06:20.208 [tsl] ERROR at music/index.ts:59
21:06:20.214 TS7008:Member '_events' implicitly has an 'any' type.
21:06:20.214 [tsl] ERROR at music/index.ts:162
21:06:20.221 TS2403:Subsequent variable declarations must have the same type. Variable 'audioCtx' must be of type 'BackgroundAudioManager', but here has type 'InnerAudioContext'.
21:06:20.222 [tsl] ERROR at music/index.ts:163
21:06:20.234 TS2339:Property 'autoplay' does not exist on type 'BackgroundAudioManager'.
21:06:20.235 [tsl] ERROR at music/index.ts:283
21:06:20.241 TS7017:Element implicitly has an 'any' type because type 'ZAudio' has no index signature.
21:06:20.242 [tsl] ERROR at music/index.ts:475
21:06:20.251 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.252 [tsl] ERROR at music/index.ts:476
21:06:20.259 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.268 [tsl] ERROR at music/index.ts:477
21:06:20.275 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.284 [tsl] ERROR at music/index.ts:478
21:06:20.285 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.292 [tsl] ERROR at music/index.ts:518
21:06:20.292 TS2339:Property 'getSystemService' does not exist on type 'PlusAndroidInstanceObject'.
21:06:20.301 [tsl] ERROR at music/index.ts:518
21:06:20.308 TS2339:Property 'TELEPHONY_SERVICE' does not exist on type 'PlusAndroidClassObject'.
21:06:20.308 [tsl] ERROR at music/index.ts:527
21:06:20.318 TS2345:Argument of type '{ getStringExtra: (arg0: any) => any; }' is not assignable to parameter of type 'string | PlusAndroidInstanceObject'.
21:06:20.318 Type '{ getStringExtra: (arg0: any) => any; }' is not assignable to type 'PlusAndroidInstanceObject'.
21:06:20.326 Property 'plusGetAttribute' is missing in type '{ getStringExtra: (arg0: any) => any; }'.
21:06:20.334 [tsl] ERROR at music/index.ts:533
21:06:20.335 TS2339:Property 'getSystemService' does not exist on type 'PlusAndroidInstanceObject'.
21:06:20.342 [tsl] ERROR at music/index.ts:533
21:06:20.342 TS2339:Property 'TELEPHONY_SERVICE' does not exist on type 'PlusAndroidClassObject'.
21:06:20.357 [tsl] ERROR at music/index.ts:534
21:06:20.365 TS2339:Property 'getCallState' does not exist on type 'PlusAndroidClassObject'.
21:06:20.377 [tsl] ERROR at music/index.ts:536
21:06:20.384 TS2339:Property 'EXTRA_INCOMING_NUMBER' does not exist on type 'PlusAndroidClassObject'.
21:06:20.392 [tsl] ERROR at music/index.ts:548
21:06:20.393 TS2351:Cannot use 'new' with an expression whose type lacks a call or construct signature.
21:06:20.401 [tsl] ERROR at music/index.ts:549
21:06:20.401 TS2339:Property 'ACTION_PHONE_STATE_CHANGED' does not exist on type 'PlusAndroidClassObject'.
21:06:20.410 [tsl] ERROR at music/index.ts:550
21:06:20.410 TS2339:Property 'registerReceiver' does not exist on type 'PlusAndroidInstanceObject'.
21:06:20.418 [tsl] ERROR at music/index.ts:557
21:06:20.418 TS7006:Parameter 'ctCall' implicitly has an 'any' type.
21:06:20.426 [tsl] ERROR at zaudio/index.ts:59
21:06:20.426 TS7008:Member '_events' implicitly has an 'any' type.
21:06:20.434 [tsl] ERROR at zaudio/index.ts:283
21:06:20.435 TS7017:Element implicitly has an 'any' type because type 'ZAudio' has no index signature.
21:06:20.443 [tsl] ERROR at zaudio/index.ts:475
21:06:20.443 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.468 [tsl] ERROR at zaudio/index.ts:476
21:06:20.484 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.485 [tsl] ERROR at zaudio/index.ts:477
21:06:20.493 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
21:06:20.493 [tsl] ERROR at zaudio/index.ts:478
21:06:20.518 TS7015:Element implicitly has an 'any' type because index expression is not of type 'number'.
Error0
- 发布:2022-01-06 21:10
- 更新:2023-04-11 17:18
- 阅读:1626
赵永强
tsconfig.json里面"strict": true,改为false
2022-01-06 22:10
Error0 (作者)
回复 赵永强: 感谢大佬,少了很多错误,剩下的错误我使用 // @ts-ignore解决了
2022-01-06 22:22