vue-pdf
vue-pdf copied to clipboard
Does this package support vue3 and vite
Does this package support vue3 and vite?
Does this package support vue3 and vite?
npm i vue3-pdf
vue3-pdf

vue3-pdf doesn't work. I catch that error.
something else other than process is wrong I use script tag to handle this but mozzila/pdf can not render correctly with chinese maybe I should create a issue with mozzila/pdf ?

The correct chinese is '什么是PBR?'
Hm, vue3-pdf does not come with any public repo and actually fails with
ERROR in ./node_modules/pdfjs-dist-sig/es5/build/pdf.worker.js (./node_modules/vue3-pdf/node_modules/worker-loader/dist/cjs.js!./node_modules/pdfjs-dist-sig/es5/build/pdf.worker.js)
Module build failed (from ./node_modules/vue3-pdf/node_modules/worker-loader/dist/cjs.js):
Error: MainTemplate.hooks.hotBootstrap has been removed (use your own RuntimeModule instead)
I'd love to see the "official" vue-pdf to support vuejs3.
I do have vue3-pdf working, however the events are not triggered...
Hm, vue3-pdf does not come with any public repo and actually fails with
ERROR in ./node_modules/pdfjs-dist-sig/es5/build/pdf.worker.js (./node_modules/vue3-pdf/node_modules/worker-loader/dist/cjs.js!./node_modules/pdfjs-dist-sig/es5/build/pdf.worker.js) Module build failed (from ./node_modules/vue3-pdf/node_modules/worker-loader/dist/cjs.js): Error: MainTemplate.hooks.hotBootstrap has been removed (use your own RuntimeModule instead)I'd love to see the "official" vue-pdf to support vuejs3.
I don't know if it's relevant but the version of worker-loader for vue-pdf and pdfjs-dist are very different. This error hints at a deprecated function in webpack 5 but I can't find where it's called here.
Also, #310 might solve the issue.
I do have vue3-pdf working, however the events are not triggered...
I have modified the vue3-pdf package, removed mitt package and make use of native emitting. For me, this package now works and events are emitted correctly. I'm using it in Vue3 / webpack 5.39.
https://github.com/JBtje/vue3pdf
Any options for those of us that are using vite with vue 2?
I'd like to see official support, or at least a semi maintained fork of this repo that adds vue3 support. The one published to npm is mysterious in origin.
It's unclear to me, but I think @leafront published the vue3-pdf..
@leafront Did you publish vue3-pdf? If so, thank you. Can we help you host your fork on github and examine it for a pull request?
I'd like to see official support, or at least a semi maintained fork of this repo that adds vue3 support. The one published to npm is mysterious in origin.
It's unclear to me, but I think @leafront published the vue3-pdf..
@leafront Did you publish vue3-pdf? If so, thank you. Can we help you host your fork on github and examine it for a pull request?
https://github.com/JBtje/vue3pdf even updated it today to use the latest of pdfjs. You can find the package on npm as well.
@JBtje My bad... I was info blind and skimming through a lot of threads and somehow missed your comment :) I see that vue3-pdf and vue3pdf are different forks.
Looks slick, Thanks!