angularjs - Angular 2 : AOT TypeError: base64 is not a function -
i trying compile project aot , when try command
ngc -p tsconfig-aot.json
it generates aot folder ngfactroy @ first time , when change main ts (as mention on angular docs) bootstrap new generated ngmodulefactory , recompile project using same command getting following error
typeerror: base64 not function @ function.from (native) @ function.from (native) @ object.extractinlinesourcemap (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/tsickle/build/src/source_map_utils.js:33:19) @ tsicklecompilerhost.stripandstoreexistingsourcemap (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/tsickle/build/src/tsickle_compiler_host.js:128:48) @ tsicklecompilerhost.getsourcefile (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/tsickle/build/src/tsickle_compiler_host.js:89:25) @ findsourcefile (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/typescript/lib/typescript.js:63453:29) @ processimportedmodules (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/typescript/lib/typescript.js:63600:25) @ findsourcefile (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/typescript/lib/typescript.js:63481:17) @ processsourcefile (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/typescript/lib/typescript.js:63384:27) @ processrootfile (/users/apache-tomcat-7.0.61/webapps/chatappangular/node_modules/typescript/lib/typescript.js:63271:13) compilation failed
am doing wrong ?
i found answer , node js doing problem here , aot requires node js v6+ , update node , issue fixed , posting answer if facing issue.
Comments
Post a Comment