Skip to content
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

Template display blank PDF #129

Closed
HarisHashim opened this issue Jan 2, 2019 · 5 comments
Closed

Template display blank PDF #129

HarisHashim opened this issue Jan 2, 2019 · 5 comments

Comments

@HarisHashim
Copy link

Info

 - vue-pdf version: 4.05
 - vue.js version: 2.9.6 
 - webpack version: 4.19.1
 - browser version: 73.0.3657.0 (Official Build) canary (32-bit)
 - OS version: Win10 Pro 1803

Problem

Using Vue-pdf with Quasar Framework v17. Give blank pdf.

image

Bellow error in chrome devtool console

e8ff547e9f6f8b04698b.worker.js:2 Uncaught ReferenceError: window is not defined
    at e8ff547e9f6f8b04698b.worker.js:2
    at e8ff547e9f6f8b04698b.worker.js:792

My google search lead to webpack/webpack#6642 .

Is this a known issue? Any workaround?

Bellow is just a bit of code snippet, not everything.

<template>
   <pdf src="http://www.pdf995.com/samples/pdf.pdf" />
</template>
<script>
import PageWidget from "components/widget/PageWidget";
import pdf from "vue-pdf";

export default {
  components: {
    PageWidget,
    pdf
  },
//...
</script>

@HarisHashim
Copy link
Author

Take note that jsfiddle example in the README also give blank page.

@FranckFreiburger
Copy link
Owner

dup #97

@FlyingFishPeng
Copy link

Have you ever resolved this problem ??I have the same problem with you

@ynuchenqian
Copy link

me,too.How to deal with?

@terajoellang
Copy link

Same problem here, was anyone able to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants