0
我試圖讓material2選擇在我的應用程序中工作,但它似乎我缺少一些東西。找不到'rx/rx.all'的類型定義文件
我不斷收到錯誤
"Error TS2688 Build:Cannot find type definition file for 'rx/rx.all'"
下面是的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"
}
}
,我將非常感激,如果任何人都可以在個正確的方向
這似乎是一個不好的答案,我的意思是我猜測它的工作原理,但它可能會導致問題,因爲TS不符合類型版本rt? – Jackie