Tee-Jay
Tee-Jay

Reputation: 733

Cannot find type definition file for 'rx/rx.all'

I have trying to get material2 select to work in my application but it appears I am missing something.

I keep getting the error

"Error  TS2688  Build:Cannot find type definition file for 'rx/rx.all'"

Below is package.json

{
"version": "1.0.0",
 "name": "reportbook",
  "dependencies": {
   "@angular/common": "~2.4.0",
    "@angular/compiler": "~2.4.0",
    "@angular/core": "~2.4.0",
    "@angular/forms": "~2.4.0",
    "@angular/http": "~2.4.0",
    "@angular/material": "~2.0.0-beta.2",
    "@angular/platform-browser": "~2.4.0",
    "@angular/platform-browser-dynamic": "~2.4.0",
    "@angular/router": "~3.4.0",
   "@angular/upgrade": "~2.4.0",
    "@types/core-js": "~0.9.34",
    "@types/hammerjs": "~2.0.33",
    "@types/jasmine": "~2.5.43",
    "@types/lodash": "4.14.50",
    "@types/rx": "4.1.1",
    "angular-in-memory-web-api": "~0.2.4",
    "bootstrap": "~3.3.7",
    "core-js": "~2.4.1",
    "hammerjs": "~2.0.8",
    "lodash": "~4.16.6",
    "moment": "~2.16.0",
    "ng2-bootstrap": "~1.3.3",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~5.0.0-beta.12",
    "systemjs": "~0.19.41",
    "zone.js": "~0.7.7"
  },
  "devDependencies": {
    "del": "~2.2.2",
    "gulp": "^3.9.1",
    "gulp-clean": "^0.3.2",
    "gulp-concat": "^2.6.0",
    "gulp-tsc": "^1.2.5",
    "gulp-typescript": "^2.14.1",
    "hammerjs": "^2.0.8",
    "path": "^0.12.7",
    "tslint": "^3.15.1",
    "typescript": "~2.1.6",
    "gulp-sass": "~2.3.2",
    "rimraf": "~2.3.2"
  }
}

I will appreciate it very much if anyone can point me in th right direction

Upvotes: 0

Views: 360

Answers (1)

Benjamin Christensen
Benjamin Christensen

Reputation: 11

I ran into this issue and downgraded @types/rx from 4.1.1 to 2.5.34 and that seemed to work.

Upvotes: 1

Related Questions