Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tepesvlad90 opened this issue Feb 14, 2018 · 0 comments
Open

Comments

@tepesvlad90
Copy link

tepesvlad90 commented Feb 14, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant