Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6461

Puppeteer library error, although i am not even using it [closed]

$
0
0

I was earlier using library puppeteer to make a pdf from html and send it on email, but it is taking so much time, so i moved to another library, but no matter how it is giving me error of ====>Error: Failed to launch the browser process!1|app | '/var/node_backend/node_modules/html-pdf-node/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory'although it is working fine on local, but on gcp intance it is giving me this error. i am using ubuntu machine for gcp.

let options = { format: 'A4' }; let file = { content: html_content }; html_to_pdf.generatePdf(file, options).then(pdfBuffer =\> { // Your code to handle the PDF buffer goes here });This is the code which i am using to do it. Help me to fix this


Viewing all articles
Browse latest Browse all 6461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>