自从我将我的package.json更新为Angular2 RC6之后,我得到了错误TS2305:
我在package.json中的依赖关系如下
"dependencies": {
"@angular/common": "2.0.0-rc.6",
"@angular/compiler": "2.0.0-rc.6",
"@angular/compiler-cli": "0.6.0",
"@angular/core": "2.0.0-rc.6",
"@angular/forms": "2.0.0-rc.6",
"@angular/http": "2.0.0-rc.6",
"@angular/platform-browser": "2.0.0-rc.6",
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
"@angular/router": "^3.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.6",
"angular2-in-memory-web-api": "0.0.18",
"angular2localization": "^0.10.0",
"bootstrap": "^3.3.6",
"core-js": "^2.4.1",
"es6-shim": "^0.35.0",
"moment": "^2.13.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.11",
"systemjs": "0.19.27",
"zone.js": "^0.6.17"发布于 2016-09-09 15:21:22
是的,谢谢你的回答!当我用路由替换了RouterConfig,用FormControl代替了控制,用FormGroup代替了FormModel,我可以编译没有错误。
https://stackoverflow.com/questions/39373893
复制相似问题