When I try to make http call like this:
return this.http.get(this.url).map(res => res.json()); everything is expected I have correct response without errors, but when I try to make http call with interval (via RxJS operator interval) I have an error.
My code looks:
return Observable.interval(1000).map(() => { return this.http.get(this.url).map(res => res.json()); }); Error:
ZoneAwareError {__zone_symbol__error: Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/node_modules/rxjs Error: …, __zone_symbol__stack: "(SystemJS) XHR error (404 Not Found) loading http:…alhost:3000/app/home/components/home.component.js", originalErr: ZoneAwareError}