rxjs-compat

Property 'map' does not exist on type 'Observable' after upgrading rxjs to 6

僤鯓⒐⒋嵵緔 提交于 2019-12-23 03:39:10
问题 I upgraded my Angular application from version 5.2 to 6.0 with the instructions from https://update.angular.io. Now my Angular application doesn't build because of the "rxjs-5-to-6-migrate" migration: ERROR in bla.ts: error TS2339: Property 'map' does not exist on type 'Observable'. I have the following imports: import { Observable } from 'rxjs/observable'; import { of } from 'rxjs/observable/of'; import { map } from 'rxjs/operators'; If I change the imports like this it works: import {

rxjs/Subscription has no exported member 'Subscription'

对着背影说爱祢 提交于 2019-12-18 01:53:25
问题 I updated my angular project and all my dependencies to latest version. Without to much trouble I solved most of the dependency issues, but I'm still stuck on RxJS. Here is my package.json: "dependencies": { "@angular-devkit/build-angular": "^0.6.0", "@angular/animations": "^6.0.0", "@angular/common": "^6.0.0", "@angular/compiler": "^6.0.0", "@angular/core": "^6.0.0", "@angular/forms": "^6.0.0", "@angular/http": "^6.0.0", "@angular/platform-browser": "^6.0.0", "@angular/platform-browser

rxjs/Subscription has no exported member 'Subscription'

◇◆丶佛笑我妖孽 提交于 2019-11-30 06:39:34
I updated my angular project and all my dependencies to latest version. Without to much trouble I solved most of the dependency issues, but I'm still stuck on RxJS. Here is my package.json: "dependencies": { "@angular-devkit/build-angular": "^0.6.0", "@angular/animations": "^6.0.0", "@angular/common": "^6.0.0", "@angular/compiler": "^6.0.0", "@angular/core": "^6.0.0", "@angular/forms": "^6.0.0", "@angular/http": "^6.0.0", "@angular/platform-browser": "^6.0.0", "@angular/platform-browser-dynamic": "^6.0.0", "@angular/router": "^6.0.0", "angular-bootstrap-md": "^6.0.1", "core-js": "^2.5.5",