nft: `phantomjs-prebuilt` does not work
Attached is a zip for a project that uses phantomjs-prebuilt, and results in an error such as:
Error: spawn /var/task/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT
Reproducible in now dev as well. When I take a look at the file path “node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs” the file is indeed not there, so perhaps the detection mechanism isn’t including the binary into the output results.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (2 by maintainers)
Me too!! @JuanM04 any luck?? I’m trying to fix this with
html-pdf.It only happens in vercel server, it works perfect on the development server.
I happens to me with
html-pdfSame thing here.
Issue still exists
This issue hasn’t been fixed.
Error: spawn /usr/src/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19) at onErrorNT (node:internal/child_process:480:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -2, code: ‘ENOENT’, syscall: ‘spawn /usr/src/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs’, path: ‘/usr/src/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs’, spawnargs: [ ‘–local-url-access=false’, ‘/usr/src/app/node_modules/html-pdf/lib/scripts/pdf_a4_portrait.js’ ] }
@eg-delacruz I didn’t fix it, decided to write a python api just for mailing pdfs.
I also still get the same issue here… @RobzLegz , did you manage to fix it?
Problem still exists
I’m having the same problem using HTML-PDF two days trying to solve this and nothing
I am still unable to use
phantomjs-prebuiltwith Now.sh.Here are the errors:
And a simplistic test case: test-phantomjs-serverless.zip