试图在nativescript中使用angular2中的http模块,但是我收到此错误:

file:///app/tns_modules/angular2/src/platform/serv
er/parse5_adapter.js:55:75: EXCEPTION: TypeError: _this.http.request(address, options)
                            .map is not a function. (In '_this.http.request(address, options)

这在浏览器中工作,并且还包括两个地方的rxjs映射模块

import 'rxjs/add/operator/map';

如果我从浏览器中删除它,我收到相同的消息 . 但是使用nativescript即使我添加它,它也不起作用......

这可能有什么不对?是否有使用http模块的工作示例?