MemePlace / Frontend

Frontend Repo
3 stars 0 forks source link

Bug in user service causing compilation errors #69

Closed bandgeekdante closed 6 years ago

bandgeekdante commented 6 years ago

Line 18 of user.service.ts is currently as follows: loggedIn$ = this.loggedInSource.distinctUntilChanged().asObservable(); This generates the error ERROR in src/app/api/user.service.ts(18,58): error TS2339: Property 'asObservable' does not exist on type 'Observable'. This sometimes (but not always) blocks compilation of the whole app.

Dave0921 commented 6 years ago

Managed to fix this by switching the distinctUntilChanged() and asObservable() like so:

loggedIn$ = this.loggedInSource.asObservable().distinctUntilChanged;

I can login now, but it messses with some of the code in meme-card.component.ts