如果另一个开发人员忘记给您一些文件,您将如何调试 Cordova / Ionic 应用程序?

How would you debug a Cordova / Ionic app if another developer had forgotten to give you some files?

我正在接手一个 Cordova/Ionic 项目。我想 运行:

ionic build 

ionic cordova build ios

但我收到如下错误:

[17:13:17]  typescript: node_modules/rxjs/Subject.d.ts, line: 16 
            Class 'Subject<T>' incorrectly extends base class 'Observable<T>'. Types of property 'lift' are 
            incompatible. Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: 
            Operator<T, R>) => Observable<R>'. Type 'Observable<T>' is not assignable to type 'Observable<R>'. Type 'T' 
            is not assignable to type 'R'. 

      L16:  export declare class Subject<T> extends Observable<T> implements ISubscription {
      L17:      observers: Observer<T>[];

[17:13:17]  typescript: src/components/push-notification/push-notification.ts, line: 61 
            Type '{ android: { forceShow: false; sound: true; }; ios: { alert: "true"; badge: false; sound: "true";...' 
            is not assignable to type 'PushOptions'. Types of property 'android' are incompatible. Type '{ forceShow: 
            false; sound: true; }' is not assignable to type 'AndroidPushOptions'. Property 'senderID' is missing in 
            type '{ forceShow: false; sound: true; }'.                         

我做过这样的事情:

pod setup

和:

ionic cordova platform rm ios

ionic cordova platform add ios

我想也许之前的开发者没有提交他们所有的工作。

我花了一个星期阅读关于 Whosebug 和 Github 的文章并听从了建议,但我无法克服这些错误。

我将如何调试它,特别是假设以前的开发人员可能忘记给我一些重要的东西?

尝试更新您的脚本

npm 安装@ionic/app-scripts@latest

然后 运行 再