While attempting to make an http call like this:
return this.http.get(this.url).map(res => res.json());
everything works as expected, with the correct response and no errors. However, when I try to make an http call using an interval (using the RxJS operator interval), an error occurs.
My code is as follows:
return Observable.interval(1000).map(() => {
return this.http.get(this.url).map(res => res.json());
});
The error message reads:
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}