Error in http map function on beta.4

I’m getting an error on ionic serve after updating to Beta 4.

this.http.get(url)
        .map((res: Response) => res.json())
        .subscribe(res => {
          // do something with res
        },
        () => {
         // something
        });

Says “Unexpected token (60:17) while parsing file”, right on “res: Response”

Did the way to do this change in Angular?

Check this post (and make sure that you made all required updates to your project after updating to beta.4):

Here’s an update:

To fix it you could remove the type annotations and the issue should disappear.

If you want to use the type annotations there’s also another workaround in the linked post.

That seems to be the issue, thanks!

I will test it out soon.