node_modules/rxjs/Observable"' has no exported member 'Observable'


#1

started to face this problem after updating angular dependencies

app/pages/messages/messages.component.ts(2,10): error TS2305: Module ‘“C:/login/Taledo/node_modules/rxjs/Observable”’ has no exported member ‘Observable’.
app/services/firebase.service.ts(5,9): error TS2305: Module ‘“C:/login/Taledo/node_modules/rxjs/Observable”’ has no exported member ‘Observable’.
app/services/firebase.service.ts(6,9): error TS2305: Module ‘“C:/login/Taledo/node_modules/rxjs/BehaviorSubject”’ has no exported member ‘BehaviorSubject’.
node_modules/rxjs/BehaviorSubject.d.ts(1,15): error TS2307: Cannot find module ‘rxjs-compat/BehaviorSubject’.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module ‘rxjs-compat/Observable’.


#2

my package.Json

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.Groceries",
    "tns-android": {
      "version": "4.1.3"
    }
  },
  "dependencies": {
    "@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",
    "@nstudio/nativescript-camera-plus": "^1.0.5",
    "nativescript-angular": "~6.0.0",
    "nativescript-cardview": "^2.0.5",
    "nativescript-fontawesome": "^1.0.0",
    "nativescript-fresco": "^3.0.7",
    "nativescript-image-swipe": "^2.1.0",
    "nativescript-imagepicker": "^6.0.1",
    "nativescript-plugin-firebase": "^5.3.1",
    "nativescript-pro-ui": "^3.4.0",
    "nativescript-theme-core": "~1.0.4",
    "reflect-metadata": "~0.1.8",
    "rxjs": "^6.1.0",
    "tns-core-modules": "^4.1.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "babel-traverse": "6.4.5",
    "babel-types": "6.4.5",
    "babylon": "6.4.5",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "~0.7.0",
    "typescript": "~2.7.2"
  }
}

#3

Import statements are changed since RxJS 6, Observable is now imported like import { Observable } from "rxjs" please refer their official documentation for more info.


#4

@manojdcoder thanks alot