2017-01-18 11 views
1

bit2ucketからangular2cliをインストールしました。 NPM後、NGのビルドとNGがサーブ、インストールして、ローカルホストに行く:4200私はctorParameters.mapは関数エラーではありません

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) 

このエラーを取得する誰もが私に何の問題を伝えることができますか?私は新しいものを更新しましたが、まだこの問題があり、私は[email protected]β14へのダウングレードはまったく機能していないようです。 Googleはそれを読んで、多くの "ソリューション"は動作しません。

I今日同じエラーを得た、ここに私がやったことだ
+0

これは新しい問題です。おそらく依存関係の1つに、新しい「angular-cli」バージョンが必要です。 'angular-cli @ 1.0.0-beta.25'にアップデートしてみてください –

答えて

0

  • 私のノードのバージョン(ノードへ:4.3.2)にダウングレード
  • 実行NPMは、NPMを-gインストールしてください。
"@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" 
  • 多くの人々が同じ問題を持っている、多分あなたは「より多くの情報を見つけることができhere
  • は、次のように私の角度のバージョンを更新(最新のNPMバージョンを取得します)この問題についてそれが役に立てば幸い。
関連する問題