Ionic 2. Defects Contactlessness

I was working on an Ionic 2 project 2 months ago. Now I reinstalled my machine and tried to start my project again. I pulled my code, but I got the following error when I try to execute "ionic service".

I am very aware that this is a problem with the library version. But I cannot resolve it.

I am getting the following errors:


[21:52:08]  typescript: node_modules/ionic-angular/navigation/nav-controller-base.d.ts, line: 20 
        Class 'NavControllerBase' incorrectly implements interface 'NavController'. Types of property 'popTo' are 
        incompatible. Type '(indexOrViewCtrl: any, opts?: NavOptions, done?: Function) => Promise<any>' is not 
        assignable to type '(page: any, params?: any, opts?: NavOptions, done?: Function) => Promise<any>'. Types of 
        parameters 'done' and 'opts' are incompatible. Type 'NavOptions' is not assignable to type 'Function'. 
        Property 'apply' is missing in type 'NavOptions'. 

  L20:  export declare class NavControllerBase extends Ion implements NavController {
  L21:      parent: any;

      

[21:52:08] typescript: node_modules / rxjs / Subject.d.ts, line: 16 The Subject class incorrectly extends the Observable base class. Property types "lift" are incompatible. Type '(operator: operator) => Observable' is not assignable to type '(operator: operator) => Observable'. The "Observable" type is not assigned to the "Observable" type. Type 'T' is not assigned to type 'R'.

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

      

[21:52:08] typescript: node_modules / rxjs / observable / dom / WebSocketSubject.d.ts, line: 23 The "WebSocketSubject" class incorrectly extends the base class "Anonymous Object". Elevator property types are incompatible. The type '(operator: Operator) => WebSocketSubject' is not assigned to the type '(operator: Operator) => Observable'. The type "WebSocketSubject" cannot be assigned to the type "Observable". Operator ownership types are incompatible. Type "Operator" is not assigned enter "Operator". Type "R" is not assigned to type "T".

  L23:  export declare class WebSocketSubject<T> extends AnonymousSubject<T> {
  L24:      url: string;

      

[21:52:08] dev server is running: http: // localhost: 8100 /

+3


source to share





All Articles