When upgrading my project with Angular 4.3.3, rxjs 5.4.2, Typescript 2.4.1 I have this issue related to the older rxjs version included into angular2-websocket:
ERROR in /Users/pfradin/Documents/projets/git/mad-web-ui/node_modules/angular2-websocket/node_modules/rxjs/Subject.d.ts (16,22): Class 'Subject' incorrectly extends base class 'Observable'.
Types of property 'lift' are incompatible.
Type '<T, R>(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
I just replaced the rxjs 5.0.0-beta.12 with 5.4.2 into my node_modules/angular2-websocket/package.json file, redo an npm install locally to this directory and the issue is resolved.
I attached the package.json file and hope that helps.
When upgrading my project with Angular 4.3.3, rxjs 5.4.2, Typescript 2.4.1 I have this issue related to the older rxjs version included into angular2-websocket:
ERROR in /Users/pfradin/Documents/projets/git/mad-web-ui/node_modules/angular2-websocket/node_modules/rxjs/Subject.d.ts (16,22): Class 'Subject' incorrectly extends base class 'Observable'.
Types of property 'lift' are incompatible.
Type '<T, R>(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
I just replaced the rxjs 5.0.0-beta.12 with 5.4.2 into my node_modules/angular2-websocket/package.json file, redo an npm install locally to this directory and the issue is resolved.
I attached the package.json file and hope that helps.
Regards
Patrick package.json.zip