I port the ionic 3.8 application to 3.9.2. This migration includes an update for RXJS 5.5
Now I am experiencing this error:
TypeError: this._subscribe is not a function. (In 'this._subscribe(sink)', 'this._subscribe' is an instance of t)
After several hours of debugging, I found out that this part of the code is related to an error:
protected observeConnectionState() { // rxjs/observable/of of(new Event('disconnect')) .pipe( // rxjs/operators/merge merge(connect$), merge(disconnect$), // Map eventname to string (rxjs/operators/map) map((e: IEvent) => { return e.eventName == 'connect' ? 'connected' : 'disconnected'; }) ) // Apply to class context .subscribe((newConnectionState) => { // this.connectionState$ is a BehaviorSubject this.connectionState$.next(newConnectionState); }); }
ADDITIONAL INFORMATION
source share