You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Nuxt 3 with vue-pdf, and everything works as it should (I have it wrapped in the client-only component, and displaying the pdf and working with annotations works). The problem occurs when I try to call any function exposed in the vue-pdf composable, like print()or download(). The error I get seems to originate from pdfjs-dist:
Uncaught (in promise) DataCloneError: Failed to execute 'postMessage' on 'Worker': #<Object> could not be cloned.
at MessageHandler.sendWithPromise (@tato30_vue-pdf.js?v=3690f757:8805:19)
at WorkerTransport.saveDocument (@tato30_vue-pdf.js?v=3690f757:12765:32)
at PDFDocumentProxy.saveDocument (@tato30_vue-pdf.js?v=3690f757:11595:28)
at M (@tato30_vue-pdf.js?v=3690f757:22403:57)
at doSomething (PdfViewer.vue:24:11)
at callWithErrorHandling (runtime-core.esm-bundler.js?v=3690f757:197:19)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?v=3690f757:204:17)
at HTMLDivElement.invoker (runtime-dom.esm-bundler.js?v=3690f757:713:5)
Additional context
vue-pdf: [1.11.3]
vue: [3.5.13]
nuxt: [3.15.1]
The text was updated successfully, but these errors were encountered:
I am using Nuxt 3 with
vue-pdf
, and everything works as it should (I have it wrapped in the client-only component, and displaying the pdf and working with annotations works). The problem occurs when I try to call any function exposed in thevue-pdf
composable, likeprint()
ordownload()
. The error I get seems to originate frompdfjs-dist
:Additional context
The text was updated successfully, but these errors were encountered: