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

RxJs encounters build error with TypeScript 2.4.1 #2700

Closed
samherrmann opened this issue Jun 27, 2017 · 2 comments
Closed

RxJs encounters build error with TypeScript 2.4.1 #2700

samherrmann opened this issue Jun 27, 2017 · 2 comments

Comments

@samherrmann
Copy link

samherrmann commented Jun 27, 2017

RxJS version:
5.4.1

Code to reproduce:
N/A. See Additional information below.

Expected behavior:
Successful build

Actual behavior:
Build error:

ERROR in node_modules/rxjs/Subject.d.ts (16,22): Class 'Subject<T>' i
ncorrectly 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:
The build error is encountered inside of an Angular project created with the Angular CLI. Steps to reproduce the error:

  1. npm install -g @angular/cli
  2. ng new my-project
  3. cd my-project
  4. Inside package.json, change typescript version to 2.4.1
  5. npm update
  6. ng build
  7. Build fails

Build fails with TypeScript 2.4.1
Build passes with TypeScript 2.4.0

@kwonoj
Copy link
Member

kwonoj commented Jun 27, 2017

dupe of #2699 and #2539 .

@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

2 participants