Open MdAffanAlam opened 2 months ago
PDF creation error: Error: spawn /opt/render/project/src/server/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe ENOENT at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /opt/render/project/src/server/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe', path: '/opt/render/project/src/server/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe', spawnargs: [ '--local-url-access=false', '/opt/render/project/src/server/node_modules/html-pdf/lib/scripts/pdf_a4_portrait.js' ] }
give solution of this error
PDF creation error: Error: spawn /opt/render/project/src/server/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe ENOENT at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /opt/render/project/src/server/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe', path: '/opt/render/project/src/server/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe', spawnargs: [ '--local-url-access=false', '/opt/render/project/src/server/node_modules/html-pdf/lib/scripts/pdf_a4_portrait.js' ] }