Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot set properties of undefined (setting 'pdfjsWorker') #198

Open
versionsai opened this issue Jun 24, 2024 · 0 comments
Open

Cannot set properties of undefined (setting 'pdfjsWorker') #198

versionsai opened this issue Jun 24, 2024 · 0 comments

Comments

@versionsai
Copy link

使用pdfh5封装pdf预览的UI组件库时,总是会出现如下报错
pdf.worker.js:3 Uncaught TypeError: Cannot set properties of undefined (setting 'pdfjsWorker')
at eval (pdf.worker.js:3:330)
at Module.eval (pdf.worker.js:3:336)
at eval (pdf.worker.js:4:30)
at ./node_modules/pdfh5/js/pdf.worker.js (chunks.js:1794:1)
at webpack_require (site-desktop.js:80:30)
at eval (pdfh5.js:10:21)
at eval (pdfh5.js:22:3)
at ./node_modules/pdfh5/js/pdfh5.js (chunks.js:1805:1)
at webpack_require (site-desktop.js:80:30)
at eval (PdfPreview.vue?./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options:3:63)

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

No branches or pull requests

1 participant