Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
Angular 2: AOT TypeError: base64 no es una función

Estoy tratando de compilar mi proyecto con aot, pero cuando pruebo el comando

ngc -p tsconfig-aot.json

genera una carpeta aot con ngFactroy al principio, pero cuando cambio main ts (como se menciona en los documentos angulares) para arrancar la nueva ngmodulefactory generada y volver a compilar el proyecto usando el mismo comando, obtengo el siguiente error

 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

Estoy haciendo algo mal ?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Encontré la respuesta, su nodo js tiene un problema aquí, AOT requiere el nodo js v6 +, solo actualizo mi nodo y el problema se solucionó, solo publico mi respuesta si alguien enfrenta este problema.

about 4 years ago · Santiago Trujillo Report

0

Parece ser un problema conocido, consulte el siguiente enlace https://github.com/angular/angular-cli/issues/5711

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!