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

403
Views
workbook.xlsx.writeBuffer() funciona bien en Dev pero no funciona en producción

Estoy usando ExcelJs Lib (1.12.0) dentro de angular 6, pero esta Lib funciona bien en desarrollo pero no en producción, falla en el punto workbook.xlsx.writeBuffer().

 import * as ExcelJS from "exceljs/dist/exceljs.min.js"; downloadExcelFile() { const title = 'Titlename'; const header = 'headerdata' const data = 'actualData'; let workbook = new ExcelJS.Workbook(); let worksheet = workbook.addWorksheet(title); worksheet.addRow(header); for(let d of data) { worksheet.addRow(d); } workbook.xlsx.writeBuffer().then((data) => { let blob = new Blob([data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }); const anchor = document.createElement('a'); const url = URL.createObjectURL(blob); anchor.href = url; anchor.download = title + '.xlsx'; document.body.appendChild(anchor); anchor.click(); document.body.removeChild(anchor); URL.revokeObjectURL(url); }).catch(err => console.log(err)) }

No se puede descargar el archivo en producción env.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

falso

over 4 years ago · Elkin Alfonso Rey Ladino 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!