Error TS2339: Property 'map' does not exist on type 'Observable<Response>'

Ever since I updated my project from Beta6 to Beta7 I have been getting the following error.

Error TS2339: Property ‘map’ does not exist on type ‘Observable’

Yes, I have imported “rxjs/add/operator/map” and have also tried importing it in different ways like so:

import {Observable} from 'rxjs/Rx';
import 'rxjs/add/operator/map';
import 'rxjs/Rx';

Here is an example of the line that the error occurs.

this.authHttp.get(url).map(res => res.json()); // via angular2-jwt

Everything was working before I updated my project. Any help is appreciated.


@fiwinet I would recommend you to see if any of the answers of this SO topic will help you - it seems that the issue might be caused by outdated TypeScript or a bug in the TypeScript services for VS.

Thanks @iignatov. That was the issue. When I opened up my VS there was an update there waiting for me. :slight_smile: So I installed it and the error cleared after that. I switched IDEs and so I haven’t used the VS for a few months now.

Thanks Again!

Ok, great, I’m glad you got it working. :slight_smile: