-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Image fails to render #18
Comments
Thank you very much for the bugs you found. This is an issue with the example on stackbilz, I'll look at it later. Before that, you can check out the documentation https://vue-to-print.netlify.app/ |
@Us3r-gitHub HI, you can access example by https://codesandbox.io/p/devbox/github/siaikin/vue-to-print-example?embed=1 |
Thanks for the fix! Is StackBlitz a known issue for this? |
This should be an issue with Chrome. Check out this w3c/ServiceWorker#765 and this w3c/ServiceWorker#765 (comment). In simple terms, service workers can't intercept requests for iframes in Chrome, even if they're from the same origin. vue-to-print uses an iframe to print partial html, and Stackblitz uses a service worker to intercept requests. These two points meet the trigger conditions of the above question. So you can see that images loaded from "local" in StackBlitz can't be displayed (because requests for "local" images can't be intercepted). CodeSandbox doesn't use service workers, so I switched to him.
|
Describe the bug
I recently discovered this library and wanted to try it out. I looked at the provided playground, but I encountered an issue where the image is not rendering correctly.
Screenshots
playground
The text was updated successfully, but these errors were encountered: