and this i how i manage create pdf, just to mention i've tried .toFile and .toBuffer both work in my local, but when build docker image it's not work for both with this below error
Error: spawn Unknown system error -8
at ChildProcess.spawn (node:internal/child_process:415:11)
at Object.spawn (node:child_process:698:9)
at PDF.PdfExec [as exec] (/srv/node_modules/html-pdf/lib/pdf.js:89:28)
at PDF.PdfToFile [as toFile] (/srv/node_modules/html-pdf/lib/pdf.js:85:8)
at exports.renderPdf (/srv/service/PdfRenderer.js:27:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /srv/routes/Report.js:63:16 {
errno: -8,
code: 'Unknown system error -8',
syscall: 'spawn'
}
i've tried to install phantom prebuild and adding phantomPath but it's still return the same error. is there any way that i can do to fix this problem
this is how i set up the docker file.
and this i how i manage create pdf, just to mention i've tried .toFile and .toBuffer both work in my local, but when build docker image it's not work for both with this below error
i've tried to install phantom prebuild and adding phantomPath but it's still return the same error. is there any way that i can do to fix this problem