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

bower Cannot read property 'PDFJS' of undefined #9066

Closed
brandonros opened this issue Oct 24, 2017 · 3 comments
Closed

bower Cannot read property 'PDFJS' of undefined #9066

brandonros opened this issue Oct 24, 2017 · 3 comments

Comments

@brandonros
Copy link

bower install pdfjs-dist

<script src="bower_components/pdfjs-dist/build/pdf.js"></script>
<script src="bower_components/pdfjs-dist/build/pdf.worker.js"></script>
Uncaught TypeError: Cannot read property 'PDFJS' of undefined
    at Object.defineProperty.value (pdf.js:14288)
    at __w_pdfjs_require__ (pdf.js:45)
    at Object._typeof (pdf.js:8065)
    at __w_pdfjs_require__ (pdf.js:45)
    at Object.defineProperty.value (pdf.js:88)
    at pdf.js:91
    at webpackUniversalModuleDefinition (pdf.js:24)
    at pdf.js:25
@yurydelendik
Copy link
Contributor

Don't add pdf.worker.js as a script, it's loaded by web worker. Closing as incomplete - no details provided.

@pedropcruz
Copy link

Well, i have same problem here:

--> bower install pdfjs-dist

and when i use require on this pdf, i obtain undefined. why?

@moffsugita
Copy link

TypeError: Cannot read property 'getDocument' of undefined

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

4 participants