2017-04-07 5 views
5

ではありません私はAOTと私のプロジェクトをコンパイルしようとしていますが、私はコマンドを実行してください角度2:AOT例外TypeError:base64では機能

NGC -pのTSconfig-aot.json

それはAOTフォルダを生成し、 1回目のngFactroy、しかし私は、ブートストラップ、新規に生成ngmodulefactory用(角ドキュメント上の言及など)メインTSを変更し、同じコマンド を使用してプロジェクトを再コンパイルするときに、私は次のエラーに

TypeError: base64 is not a function 
at Function.from (native) 
at Function.from (native) 
at Object.extractInlineSourceMap (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/tsickle/build/src/source_map_utils.js:33:19) 
at TsickleCompilerHost.stripAndStoreExistingSourceMap (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/tsickle/build/src/tsickle_compiler_host.js:128:48) 
at TsickleCompilerHost.getSourceFile (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/tsickle/build/src/tsickle_compiler_host.js:89:25) 
at findSourceFile (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/typescript/lib/typescript.js:63453:29) 
at processImportedModules (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/typescript/lib/typescript.js:63600:25) 
at findSourceFile (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/typescript/lib/typescript.js:63481:17) 
at processSourceFile (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/typescript/lib/typescript.js:63384:27) 
at processRootFile (/Users/apache-tomcat-7.0.61/webapps/ChatAppAngular/node_modules/typescript/lib/typescript.js:63271:13) 
Compilation failed 

を取得しています私が何か間違ったことをやっていますか?

答えて

6

私は答えを見つけたを確認し、ここでの問題をやって、そのノードjsが、AOTは、ノードのjs V6 +、私はちょうど私のノードを更新し、ちょうど掲示、問題を修正が必要です誰かがこの問題に直面したら私の答え。

+2

これは誰かを助けることを望みます:http://stackoverflow.com/a/18412505/4472973 - Windows用のノードjsを簡単に更新する方法 –