electrovir / pdf-text-reader

Dead simple pdf text reader
https://electrovir.github.io/pdf-text-reader/
Creative Commons Zero v1.0 Universal
27 stars 1 forks source link

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

Open RainBoard01 opened 2 years ago

RainBoard01 commented 2 years ago

image

electrovir commented 1 year ago

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?

phenomen commented 1 year ago

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

hmih commented 9 months ago

I'm hitting this as well.

electrovir commented 2 months ago

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 🙃