如果另一个开发者忘记给你一些文件,你会如何调试Cordova/Ionic应用程序?
我要接管一个科尔多瓦/爱奥尼亚项目。我想跑步:如果另一个开发者忘记给你一些文件,你会如何调试Cordova/Ionic应用程序?,cordova,ionic-framework,transpiler,Cordova,Ionic Framework,Transpiler,我要接管一个科尔多瓦/爱奥尼亚项目。我想跑步: ionic build 或 但我会遇到如下错误: [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
ionic build
或
但我会遇到如下错误:
[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; }'.
以及:
我想也许之前的开发人员没有完成他们所有的工作
我花了一周时间阅读了有关Stackoverflow和Github的文章,并遵循了建议,但我无法克服这些错误
我该如何调试它,尤其是假设以前的开发人员可能忘记给我一些必要的东西 尝试更新脚本 npm安装@IONAL/app-scripts@latest
然后再次运行很高兴能提供帮助:D
[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