Skip to content

Type 'Subscription' is not assignable to type 'Subscription' #15167

@cozzbie

Description

@cozzbie

TypeScript Version:

2.2.2

Code:

private ts:Subscription
this.ts = Keyboard.onKeyboardShow().subscribe(e => this.onShow(e));

Expected behavior:

Should work with no errors

Actual behavior:
Throws error

Type 'Subscription' is not assignable to type 'Subscription'. Two different types with this name exist, but they are unrelated. Property '_parent' is missing in type 'Subscription'.

Notes:

This just started happening after I upgraded Angular to 2.2.2 and rxjs to 5.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions