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

Does not build with typescript 2.4.1 #2699

Closed
AlexViderman opened this issue Jun 27, 2017 · 4 comments
Closed

Does not build with typescript 2.4.1 #2699

AlexViderman opened this issue Jun 27, 2017 · 4 comments

Comments

@AlexViderman
Copy link

RxJS version:
5.4.1

Code to reproduce:

Expected behavior:
No issues with typescript 2.3.4

Actual behavior:
Upgraded my Angular 4 to typescript 2.4.1 and getting the following error on build:

[at-loader] Checking finished with 2 errors

Error in bail mode: [at-loader] ./node_modules/rxjs/Subject.d.ts:16:22
    TS2415: 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'.

Additional information:
Using it with Webpack 3 (Tried with 2 as well, same issue)

@kwonoj
Copy link
Member

kwonoj commented Jun 27, 2017

It's dupe of #2539 and we're working on to bump up compiler version, but probably with next major.

@AlexViderman
Copy link
Author

@kwonoj thank you

@satyadev1
Copy link

Try going to tsconfig.json file in your project and add in
"compilerOptions":{

"skipLibCheck": true

}
This worked for me.

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants