![](/img/trans.png)
[英]Uncaught TypeError: ctorParameters.map is not a function after updating to Angular 7
[英]ctorParameters.map is not a function error
我只是从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似乎根本不工作。 谷歌它和阅读了很多“解决方案”不起作用。
我今天得到了同样的错误,这就是我所做的:
"@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"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.