Error: Property map does not exist on type observable

Since today I’m getting the error:

property map does not exist on type observable

I just deleted node_modules folder and ran npm install and now it seems like the app stopped working.

Here is my package.json:

{
  "name": "cornelsen.sus.app",
  "version": "1.0",
  "description": "Cornelsen.SuS.App",
  "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/http": "2.0.0-rc.4",
    "@angular/forms": "0.2.0",
    "es6-shim": "0.35.0",
    "ionic-angular": "2.0.0-beta.11",
    "ionic-native": "1.3.10",
    "ionicons": "3.0.0",
    "reflect-metadata": "0.1.3",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "0.6.15"
  },
  "devDependencies": {
    "browserify": "13.1.0",
    "browserify-istanbul": "2.0.0",
    "codecov.io": "0.1.6",
    "del": "2.2.1",
    "gulp": "3.9.1",
    "gulp-tslint": "6.0.2",
    "gulp-typescript": "2.13.6",
    "gulp-watch": "4.3.9",
    "ionic-gulp-browserify-typescript": "2.0.0",
    "ionic-gulp-fonts-copy": "1.0.0",
    "ionic-gulp-html-copy": "1.0.0",
    "ionic-gulp-sass-build": "1.0.0",
    "ionic-gulp-scripts-copy": "2.0.1",
    "ionic-gulp-tslint": "1.0.0",
    "isparta": "4.0.0",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.1.2",
    "karma-browserify": "5.0.5",
    "karma-chrome-launcher": "1.0.1",
    "karma-coverage": "1.1.1",
    "karma-jasmine": "1.0.2",
    "karma-mocha-reporter": "2.1.0",
    "karma-phantomjs-launcher": "1.0.1",
    "phantomjs-prebuilt": "2.1.11",
    "protractor": "4.0.3",
    "protractor-jasmine2-screenshot-reporter": "^0.3.2",
    "run-sequence": "1.2.2",
    "ts-node": "1.2.2",
    "tsify": "1.0.3",
    "tslint": "3.14.0",
    "tslint-eslint-rules": "1.3.0",
    "typings": "1.3.2"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [ ],
  "scripts": {
    "build": "gulp --gulpfile test/gulpfile.ts --cwd ./ build-app",
    "e2e": "gulp --gulpfile test/gulpfile.ts --cwd ./ build-e2e && protractor test/protractor.conf.js",
    "karma": "gulp --gulpfile test/gulpfile.ts --cwd ./ karma-debug",
    "start": "ionic serve",
    "test": "gulp --gulpfile test/gulpfile.ts --cwd ./ unit-test"
  }
}

Any idea?

That is the code which is failing:

image

Maybe,

import ‘rxjs/add/operator/map’;

Also if you are importing from rxjs,you may want to import specific modules to keep your bundle small:

import { Observable } from ‘rxjs/Observable’;

instead of

import { Observable } from ‘rxjs/Rx’;

Are you using Visual Studio? VS 2015 Update 1 does this because it uses TypeScript 1.7x. Supposedly fixed in Update 2, but even Update 3 has related issues unless you massage it. (There’s a discussion on Stack Overflow but I don’t remember the link.) I ended up switching to Sublime because of this.

If you aren’t using VS, my only suggestion is to ensure your version of TypeScript is up to date.

Here is the answer: http://stackoverflow.com/questions/39089697/http-get-not-triggering-after-rc4/39089828?noredirect=1#comment65536075_39089828