Property 'map' does not exist on type 'Observable'报错解决方案
2018-12-16 17:47
453 查看
开发项目时Property ‘map’ does not exist on type 'Observable’报错
constructor(private http: Http) { this.dataSource = this.http.get('/list') .map((res) => res.json()); }
分析之后发现是缺少模块,安装此模块即可解决。
npm install rxjs-compat
相关文章推荐
- angular2 Property 'map' does not exist on type 'Observable<Response>'.
- Angular响应式开发中报错Property 'map' does not exist on type 'Observable'.引用rxjs也没用。
- Property 'filter' does not exist on type 'Observable' 报错解决方法
- Property 'subscribe' does not exist on type '() => Observable<any>'
- [ Vue-ts-错误 ] Property '$router|$store' does not exist on type Vue
- Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist解决方案
- Ionic iframe - [ts] Property 'contentWindow' does not exist on type 'HTMLElement'.
- TypeScript 错误“property does not exist on value of type”
- Service 'china' of type 'MapServer' does not exist or is inaccessible
- Property 'date' not found on type java.lang.String] with root cause解决方案
- 异常:Property 'name' not found on type java.lang.String,attribute items does not accept any
- Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist问题解决
- Property '0' not found on type java.lang.String的解决方案
- jsp中Property 'XXX' not found on type java.lang.String解决方案
- 错误:Property 'XXX' not found on type java.lang.String解决方案
- the apk file apk does not exist on disk以及AndroidStudio修改了代码但是跑到机器上却没任何反应解决方案
- 错误:Property 'XXX' not found on type java.lang.String解决方案
- Property 'XXX' not found on type java.lang.String解决方案
- studio编译出错Cannot get property 'versionCode' on extra properties extension as it does not exist
- Property 'XXX' not found on type java.lang.String解决方案