我只是从bitbucket安装angular2cli。在npm install,ng build和ng serve之后,转到localhost:4200我收到此错误
Uncaught TypeError: ctorParameters.map is not a function
at ReflectionCapabilities.parameters (http://localhost:4200/main.bundle.js:44436:45)
at Reflector.parameters (http://localhost:4200/main.bundle.js:44570:44)
at CompileMetadataResolver.getDependenciesMetadata (http://localhost:4200/main.bundle.js:25124:54)
at CompileMetadataResolver.getTypeMetadata (http://localhost:4200/main.bundle.js:25089:26)
at CompileMetadataResolver.getDirectiveMetadata (http://localhost:4200/main.bundle.js:24864:28)
at http://localhost:4200/main.bundle.js:24933:49
at Array.forEach (native)
at CompileMetadataResolver.getNgModuleMetadata (http://localhost:4200/main.bundle.js:24926:44)
at http://localhost:4200/main.bundle.js:24914:50
at Array.forEach (native)
任何人都可以告诉我什么问题?我更新了新的,但仍然有这个问题,我降级到angular-cli@1.0.0-beta.14似乎根本不工作。谷歌它,并阅读了很多"解决方案"不起作用。
答案 0 :(得分:0)
我今天遇到了同样的错误,这就是我所做的:
"@angular/common": "2.4.1", "@angular/compiler": "2.4.1", "@angular/core": "2.4.1", "@angular/forms": "2.4.1", "@angular/http": "2.4.1", "@angular/platform-browser": "2.4.1", "@angular/platform-browser-dynamic": "2.4.1", "@angular/platform-server": "2.4.1", "@angular/router": "3.4.1", "rxjs": "5.0.1", "zone.js": "^0.7.2"