pdf-text-reader icon indicating copy to clipboard operation
pdf-text-reader copied to clipboard

Error: No "GlobalWorkerOptions.workerSrc" specified. on React

Open RainBoard01 opened this issue 3 years ago • 6 comments

image

RainBoard01 avatar Jul 07 '22 12:07 RainBoard01

Do you have any more details to provide @RainBoard01? What are you passing to readPdfText? This error is being thrown within pdfjs-dist itself, so it's unlikely we'll be able to do anything about it within this package.

However, I did just update the pdfjs-dist dependency in this package's version 3.0.2. Perhaps this new published version will fix this bug?

electrovir avatar Aug 16 '22 11:08 electrovir

I have the same issue with SvelteKit so it's not React specific problem.

phenomen avatar May 22 '23 18:05 phenomen

I'm hitting this as well.

hmih avatar Oct 18 '23 10:10 hmih

Can you please try again using the latest version? (5.0.1). It includes an updated pdfjs-dist dependency which might help.

Other than that, I haven't been able to repro this yet so I don't know what else to do 🙃

electrovir avatar May 07 '24 21:05 electrovir

I'm having the same issue, on the latest version, in a Next.js (React) app

nilatti avatar Mar 05 '25 13:03 nilatti