角2:AOT类型错误:Base64是不是一个函数

问题描述:

我试图编译我的项目,AOT,但是当我尝试的命令角2:AOT类型错误:Base64是不是一个函数

NGC -p tsconfig-aot.json

它生成AOT文件夹与ngFactroy在第一时间,但是当我改变主TS(如上面所提到的角度文档)为引导新生成的ngmodulefactory并重新编译该项目中使用相同的命令 我收到以下错误

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 

我做错了什么?

我找到答案,它的节点JS这里做什么的问题,AOT需要节点JS V6 +,我只是更新我的节点,并发出定额,刚刚发布我的回答是否有人遇到这个问题。

+2

希望这将有助于某人:http://*.com/a/18412505/4472973 - 更新窗口节点js的最简单方法 –

这似乎是一个已知的问题,查看以下链接 https://github.com/angular/angular-cli/issues/5711