import 'rxjs' should be removed
import 'rxjs' is not needed with new angular core 2.4.9 . It's not working with this, I needed to remove require ('rxjs') from angular2-jwt-refresh.js in node_modules to get this to work
@vicko23, rxjs is a peer dependence of angular2-jwt and angular2-jwt-refresh. So this is necessary to get it work. Before you remote rxjs from node_modules you get any output errors?
I updated the project to 2.4.9 and don't get any error. If you want I can create a new branch with this.
I get following error:
(SystemJS) XHR error (404 Not Found) loading http://localhost/node_modules/rxjs.js
Error: XHR error (404 Not Found) loading http://localhost/node_modules/rxjs.js
at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange] (http://localhost/node_modules/zone.js/dist/zone.js?1489568198837:1242:29) [
Maybe it's problem with my angular-seed project. Anyway everything works great when I remove require('rxjs') from angular2-jwt-refresh.js so I would be very grateful if you create one branch for me without import('rxjs') in angular2-jwt-refresh.ts.
Thanks in advance
If rxjs is removed, the angular2-jwt-refresh don't works as expected.
Looks like location of rxjs is wrong on your project. When installed this should be in node_modules/rxjs/Rx.js
For while I made a branch with angular 2.4.9: https://github.com/leonardobazico/angular2-jwt-refresh/tree/angular2.4.9
You can clone this and check the tests or build a custom version.
Please, send your package.json.
Yes it is in that location (node_modules/rxjs/Rx.js) and exactly because of that I think it should be import 'rxjs/Rx' instead of import 'rxjs' :)
@vicko23, please send the content of package.json
And the node and npm versions
@vicko23 Doesn't look like you are going to get a response soon, but this does look like a bug to me. What do you think? I am concerned about removing that line every time in order to have it working. Am I doing something wrong ?