Error: html-pdf: Received the exit code '255'
Can't open '../../node_modules/html-pdf/lib/scripts/pdf_a4_portrait.js'
at ChildProcess.respond (/Users/sunrising/Documents/Projects/testproject/lambda/htmlToPdfBlob.js:25177:31)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
Hi I am using this script inside a folder of a create-react-app project because i need it there in order to use Netlify function (like aws lambda).
I am using options like this because otherwise it won't find pdf_a4_portrait.js:
but still i have this error:
Is there any solution?
366 didn't help