Closed blackode closed 4 years ago
BTW, I resolved by updating config with following LOC in config.ex
config :puppeteer_pdf,
exec_path: Path.join(File.cwd!(), "node_modules/.bin/puppeteer-pdf")
Hi @blackode sorry for taking some time to answer.
Glad you found a solution! We will probably include this solution in the readme, thank you for the contribution
Hi @tmpduarte Firstly, Thanks for amazing library :) Glad to hear that..
I am trying to use
puppeteer-pdf
locally in amix
project.I installed locally by running
npm install puppeteer-pdf
.This created a folder
node_modules
and inside it has two folders namedpuppeteer
andpuppeteer-pdf
with some dependencies.In my
config.ex
, I configured the executable path tonode_modules/puppeteer-pdf
After compiling, I tried to check version and generate a file from string like in the following way
I am not getting any errors nor pdf's generated.
Am I missing Something here?