From 6ab60f8075291a8e5950e1198ab7f13b29ef6873 Mon Sep 17 00:00:00 2001 From: flackjap Date: Tue, 6 Mar 2018 13:46:26 +0100 Subject: [PATCH] Fix for Angular 5 I am only not sure if this is due to a new version of Angular, or due to a newer version of RxJS which Angular 5 forces. However, it produces an error in production if one doesn't import operators separately and it is also advised not to import the whole rxjs module (`import 'rxjs';`), because it simply bloats the final output and it may not be reduced in three-shaking. --- src/angular2-jwt-refresh.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/angular2-jwt-refresh.ts b/src/angular2-jwt-refresh.ts index e81fba1..90b73fc 100644 --- a/src/angular2-jwt-refresh.ts +++ b/src/angular2-jwt-refresh.ts @@ -20,11 +20,10 @@ import { IAuthConfig, JwtHelper } from 'angular2-jwt'; -import 'rxjs'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; import { Subject } from 'rxjs/Subject'; - +import 'rxjs/add/observable/of'; @Injectable() export class JwtHttp extends AuthHttp {