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

572
Views
no se puede encontrar el módulo 'jspdf-autotable' y 'jspdf' o sus declaraciones de tipo correspondientes

micomponente.ts

 import jsPDF from 'jspdf'; import autoTable from 'jspdf-autotable'; export class Component implements OnInit { . . . exportPdf() { const doc = new jsPDF('p', 'pt'); columns = [...] autoTable(doc, { columns: this.columns, body: this.data, didDrawPage: (dataArg) => { doc.text('data', dataArg.settings.margin.left, 10); } }); doc.save('data.pdf'); } }

paquete.json

 "dependencies": { "jspdf": "^2.5.1", "jspdf-autotable": "^3.5.23" }

Instalé mis paquetes npm con npm i jspdf y npm i jspdf-autotable pero persisten los mismos errores. No entiendo que debo hacer. ¿Están mal las versiones?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debe instalar @types/jspdf y @types/jspdf-autotable como dependencias de desarrollo.

Si usas yarn :

 yarn add -D @types/jspdf @types/jspdf-autotable

Para uso npm :

 npm install @types/jspdf @types/jspdf-autotable --save-dev
about 4 years ago · Juan Pablo Isaza 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!