# Object doesn't support property or method 'forkJoin'

**URL:** <https://forum.ionicframework.com/t/object-doesnt-support-property-or-method-forkjoin/154305>\
**Category:** ionic-v1\
**Created:** [January 27, 2019, 2:02pm UTC](https://forum.ionicframework.com/t/object-doesnt-support-property-or-method-forkjoin/154305 "2019-01-27T14:02:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkandoth](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@pkandoth](https://forum.ionicframework.com/u/pkandoth)\
**Post date:** [January 27, 2019, 2:02pm UTC](https://forum.ionicframework.com/t/object-doesnt-support-property-or-method-forkjoin/154305/1 "2019-01-27T14:02:36Z")

</div>

## in app.component.ts

ngAfterViewInit(){  
this.weather.getPosition().then(resp=\>{  
this.weather.currentWeather(resp.coords.longitude,resp.coords.latitude)  
.subscribe(  
res =\>{  
console.log(res);  
}

```
  )
  });

```

}

* * *

in Providers

import ‘rxjs/add/observable/forkJoin’;

import ‘rxjs/add/operator/map’;

import ‘rxjs/Rx’;

currentWeather(lon: number, lat: number): Observable\<any\> {

const currentInfo = this.http.get(`http://api.openweathermap.org/data/2.5/weather?lat=${lat}&amp;lon=${lon}&amp;units=metric&amp;APPID=${this.apiKey}`);

const forecastInfo = this.http.get(`http://api.openweathermap.org/data/2.5/forecast/daily?lat=${lat}&amp;lon=${lon}&amp;units=metric&amp;cnt=10&amp;APPID=${this.apiKey}`);

return Observable.forkJoin([currentInfo, forecastInfo])

.map(responses =\> {

return .concat(…responses);

});

}

* * *

Attaching the image of the Error.

 ![error1](https://global.discourse-cdn.com/ionicframework/original/3X/2/a/2ad2017f56a6bbcd546167730e2f03be0706152d.png)

Please Help
