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

220
Views
No se puede obtener la página del navegador node-html-to-image

Estoy tratando de usar node.js con el paquete node-html-to-image pero tengo problemas desde hoy. Ayer mi código funcionaba bien pero hoy sin cambiar nada está todo roto. Intenté crear un proyecto nuevo sin agregar nada más que el código predeterminado node-html-to-image (directamente desde el archivo Léame), pero recibo los mismos errores.

El error:

 (node:67808) UnhandledPromiseRejectionWarning: Error: Unable to get browser page at Worker.<anonymous> (G:\ONEDRIVE\\{DIRECTORY}\School\html-to-image-test\node_modules\puppeteer-cluster\dist\Worker.js:41:31) at Generator.next (<anonymous>) at fulfilled (G:\ONEDRIVE\{DIRECTORY}\School\html-to-image-test\node_modules\puppeteer-cluster\dist\Worker.js:5:58) at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:67808) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:67808) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Esto fue producido por el siguiente código (este es todo el código en mi index.js. Realmente no hay nada más que eso)

 const nodeHtmlToImage = require('node-html-to-image') nodeHtmlToImage({ output: './image.png', html: '<html><body>Hello world!</body></html>' }) .then(() => console.log('The image was created successfully!'))

Intenté agregar un .catc() al final de esto, pero aún no funciona, así que no tengo ideas.

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!