Closed juliolopezn closed 7 years ago
Can you check if you use jsreport-phantom-pdf@1.0.3
There was a minor change in the latest that could fix it.
For some reason the installation of jsreport-phantom-pdf
was not complete or errored. Please try to reinstall it or copy the missing file phantom-html-to-pdf\lib\scripts\standaloneScript.js
from another installation there.
yes, I'm using jsreport-phantom-pdf@1.0.3
. This problem only occurs when the application is packaged in .asar
.
Is the file standaloneScript.js
actually there?
Yes, I guess phantomjs.exe
can not access the package app.asar
I already checked the problem. phantomjs.exe
is not packaged inside the app.asar
and can not access the other dependencies. What can you recommend?
@bjrmatos you are experienced in electron... did you ever tried an app in asar with jsreport together? I was not able to make it working some time ago, but maybe I'm missing something? Thank you
Already solved the problem. I created a module to create reports outside of the app.asar
. Thanks for helping. :) and sorry for my bad English.
Thanks for the info.
@JulioLopezN Can you please develop your answer? I'm running into the same issue
jsreport v3.3.0 jsreport/jsreport-phantom-pdf is not working
2022-01-21T05:43:04.184Z - debug: Adding sample data Sy5S19ncg rootId=f3ngmoxp32drexo, id=f3ngmoxp32drexo 2022-01-21T05:43:04.185Z - debug: Base url not specified, skipping its injection. rootId=f3ngmoxp32drexo, id=f3ngmoxp32drexo 2022-01-21T05:43:04.185Z - debug: Rendering engine handlebars rootId=f3ngmoxp32drexo, id=f3ngmoxp32drexo 2022-01-21T05:43:04.561Z - error: Report render failed: Cannot find module 'phantomjs' Require stack:
installed extension and there version are as
jsreport-server@ /home/devops/jsreport ├── @jsreport/client@3.0.0-beta.1 ├── @jsreport/jsreport-phantom-pdf@3.0.0 ├── core-js@3.20.3 ├── handlebars-intl@1.1.2 ├── handlebars@4.7.7 ├── jsreport-core@2.10.1 ├── jsreport@3.3.0 ├── puppeteer@13.1.1 └── uuid@8.3.2