Padocia / Laravel-Nova-Pdf

MIT License
21 stars 9 forks source link

live site pdf zero #8

Closed anditsung closed 3 years ago

anditsung commented 3 years ago

i install it on live site. but after the download the size is zero.

Padocia commented 3 years ago

do you have this problem only on live site ? is it working fine in development environment ?

anditsung commented 3 years ago

Yes. Only happen on live site. Dont have any problem on development

Padocia commented 3 years ago

did you run npm install puppeteer on live server ?

anditsung commented 3 years ago

yes, already install puppeteer. but after produce will have zero pdf.

Padocia commented 3 years ago

email me at zakaria.tayebbey@gmail.com

anditsung commented 3 years ago

mail you the file that was generated?

-- i have mail the file from live and dev

try to run it using thinker

Psy Shell v0.10.8 (PHP 7.4.16 — cli) by Justin Hileman

Spatie\Browsershot\Browsershot::url('https://nova.laravel.com')->save('test.pdf') Spatie\Browsershot\Exceptions\CouldNotTakeBrowsershot with message 'For some reason Chrome did not write a file at test.pdf.'

got this exception

on live server need to run this using using global and link that package

install puppeteer using this command npm install -g puppeteer then link global package to current project npm link puppeteer