-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Error: Removed API method: PDFDocumentLoadingTask.then, use the promise
getter instead.
#230
Comments
Doesn't seem to be pdfjs-dist, it worked for me on 2.x before the latest updates. Code also looks ok, it returns loadingTask.promise as expected for 2.x at |
@Davidbr17, can you provide us a stack trace ? |
app.js?id=48141a9ecccaa7c1f0fa:110200 |
When you use vuePdfNoSssNoWorker.vue or vuePdfNoSss.vue you will find this error. Because it requires pdfjs-dist/build/pdf.js which will throw the error.
If you want to fix this bug, you should try to use vue-pdf@4.0.8 and pdfjs-dist@2.3.200. In this way you will find this error as a warning. So please fix your package-lock.json or yarn.lock. |
@FranckFreiburger any updates on this issue? |
any updates on this issue? This is suddenly breaking a production site. Was successfully using vue-pdf as a nuxt plugin like so, but not anymore. The deprectation notice is coming from mozilla's pdf.js (mozilla/pdf.js#10377)
|
Seems like changing |
error with pdfjs-dist version
The text was updated successfully, but these errors were encountered: