jamesdeantv / ionic-videogular-sample

This is a sample ionic project that utilizes videogular2 + api
1 stars 1 forks source link

error transpile failed #1

Open fdambrosio opened 7 years ago

fdambrosio commented 7 years ago

Hi, I clone the project, run 'npm install' and after I run 'ionic serve' but the compiler return this error message:

[15:27:01]  transpile started ... 
[15:27:07]  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;

[15:27:07]  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>[];

[15:27:07]  typescript: node_modules/videogular2/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>[];

[15:27:07]  transpile failed 
jamesdeantv commented 7 years ago

This sample project does not function. What exactly are you looking to accomplish? Perhaps I can update it if needed.

fdambrosio commented 7 years ago

thanks @jamesdeantv this was a feedback. Now I've created a new Ionic project with Videogular and it works. Thanks