marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.55k stars 544 forks source link

Error: spawn C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs ENOENTat #709

Open truekamleshsingh opened 2 months ago

truekamleshsingh commented 2 months ago

I am using html-pdf, handlebar, node js in azure function app with typescript

If i am running timer trigger az fun in local its generating the reports but when i deployed in production with vs code then the az fun givin this error

PLEASE HELP ME OUT THIS

Error: spawn C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs ENOENTat Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)at onErrorNT (node:internal/child_process:478:16)at processTicksAndRejections (node:internal/process/task_queues:83:21) {errno: -4058,code: 'ENOENT',syscall: 'spawn C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs',path: 'C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs',spawnargs: ['--local-url-access=false','C:\home\site\wwwroot\node_modules\html-pdf\lib\scripts\pdf_a4_portrait.js']}