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

487
Views
Biblioteca externa no encontrada en la compilación mecanografiada

Buenos días a todos, mientras desarrollaba una biblioteca, necesitaba instalar una biblioteca de terceros para hacer el trabajo. Traté de modificar mi archivo tsconfig.json pero no fue suficiente, puede ver a continuación la configuración que establecí (se agregaron algunos campos mientras buscaba en la red):

 { "compilerOptions": { /* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Language and Environment */ "target": "ES2021", "lib": ["DOM", "ES2021"], "experimentalDecorators": true, "emitDecoratorMetadata": true, /* Modules */ "module": "ES2020", "rootDir": "./", "moduleResolution": "node", "baseUrl": ".", /* JavaScript Support */ "allowJs": true, "maxNodeModuleJsDepth": 1, /* Emit */ "outDir": "./dist", /* Interop Constraints */ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, /* Type Checking */ "strict": true, "noImplicitAny": false, "skipLibCheck": true, }, "include":[ "./node_modules/html2canvas" ] }

Sin embargo, cuando llego a la parte en la que tengo que usar la biblioteca durante la fase de compilación, me da este error en la consola:

 Uncaught (in promise) ReferenceError: html2canvas is not defined

¿podría decirme lo que es solucionable? hay otras preguntas sobre SO pero ninguna de ellas resuelve mi problema.

¿Alguien sería tan amable de decirme cómo solucionarlo y dónde me equivoco?

Muchas gracias.

about 4 years ago · Juan Pablo Isaza
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!