Closed sergiybutenko closed 4 years ago
Does http://localhost/js/app.js exist? Or do you need to set the app url?
yes, here: http://joxi.ru/YmEYey8tEqKbm6
Same error with me. any solutions for this?
i decide to use another files just for pdf export and include css files with absolute path (absolute path is working)
Thank you. I already solved my problem .
On Tue, Apr 25, 2017 at 9:31 PM, swash13 notifications@github.com wrote:
i decide to use another files just for pdf export and include css files with absolute path (absolute path is working)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/barryvdh/laravel-snappy/issues/183#issuecomment-297030688, or mute the thread https://github.com/notifications/unsubscribe-auth/ARJiHgAgXym9vD7eQM68icLhL0Zaj1KPks5rzfXMgaJpZM4MlZU_ .
How?
Was anybody able to resolve this issue?
I've been trying to mess around with the --proxy
option but didn't get anything to run due to the laradock setup. I'm not entirely sure which container is responsible for what.
However, when I add 10.0.75.1 dockerhost
to my Windows hostfile and browse to http://dockerhost
instead of http://localhost
, the PDF will load just fine.
Same issue on Docker for Mac (docker v17.09 ce). I solved it by using docker.for.mac.localhost instead localhost
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/KnpLabs/snappy instead. When having doubts, please try to reproduce the issue with just snappy. If you believe this is an actual issue with the latest version of laravel-snappy, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
Problem still exists. Did someone found the solution?
How to include external css files with laravel to make it work ? It's not converting because of error. When i try to convert simple html without including any css files - it works perfect. I tried both url() and asset() helpers. Also i tried absolute path like: {{ public_path('css/app.css') }} and it's not only didn't generate pdf, but also css files was not load on the page and all my styling disappears. BTW i'm using LaraDock, maybe this helps. Here my view:
It's layouts/app.php:
Here's output error in laravel.log file: