Ionic2CLI-Meteor-WhatsApp icon indicating copy to clipboard operation
Ionic2CLI-Meteor-WhatsApp copied to clipboard

Argument of type 'Observable<any>' is not assignable to parameter

Open tepesvlad90 opened this issue 7 years ago • 0 comments

step to reproduce:

git clone https://github.com/Urigo/Ionic2CLI-Meteor-WhatsApp.git
cd Ionic2CLI-Meteor-WhatsApp
npm install
npm run meteor-client:bundle
npm run ionic:serve 

error when run ionic:serve

[08:02:34]  ionic-app-scripts 3.0.0 
[08:02:34]  watch started ... 
[08:02:34]  build dev started ... 
[08:02:34]  clean started ... 
[08:02:34]  clean finished in 1 ms 
[08:02:34]  copy started ... 
[08:02:34]  deeplinks started ... 
[08:02:34]  deeplinks finished in 74 ms 
[08:02:34]  transpile started ... 
[08:02:36]  typescript: src/pages/messages/messages.ts, line: 67 
            Argument of type 'Observable<any>' is not assignable to parameter of type 'Observable<any>'. Property 
            'source' is protected but type 'Observable<T>' is not a class derived from 'Observable<T>'. 

      L66:  // Remove the scroll listener once all messages have been fetched
      L67:  .takeUntil(this.autoRemoveScrollListener(messagesCount))
      L68:  // Filter event handling unless we're at the top of the page

[08:02:36]  typescript: src/services/phone.ts, line: 54 
            The 'this' context of type 'Observable<string>' is not assignable to method's 'this' of type 
            'Observable<string>'. Property 'source' is protected but type 'Observable<T>' is not a class derived from 
            'Observable<T>'. 

      L53:  try {
      L54:    var msg = await startObs.takeUntil(timeoutObs).toPromise();
      L55:  } catch (e) {

[08:02:36]  typescript: src/services/picture.ts, line: 43 
            Argument of type '{ quality: number; }' is not assignable to parameter of type '{ quality: number; 
            targetHeight: number; targetWidth: number; }'. Property 'targetHeight' is missing in type '{ quality: 
            number; }'. 

      L42:  .then((fileURI) => {
      L43:    return crop ? this.crop.crop(fileURI, {quality: 50}) : fileURI;

[08:02:36]  dev server running: http://localhost:8100/ 

[08:02:37]  copy finished in 2.92 s 
[08:02:37]  watch ready in 2.97 s 

my environment :

meteor on my linux : 1.6.1
meteor on the project remain same : 1.6.rc7

ionic info :

cli packages: (/usr/lib/node_modules)

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.7.1

System:

    Android SDK Tools : 26.0.1
    Node              : v8.9.4
    npm               : 5.6.0 
    OS                : Linux 4.13

Environment Variables:

    ANDROID_HOME : /Android/Sdk/

Misc:

    backend : pro

is there anyone have same issues with me ? how to solve it.

Thnx

tepesvlad90 avatar Feb 14 '18 01:02 tepesvlad90