react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

Unable to render PDF: Warning: UnknownErrorException: The API version "4.3.136" does not match the Worker version "4.5.136".

Open yyueda opened this issue 1 year ago • 3 comments

For context, I have 2 pdfjs-dist installed. I received the warning above when trying to render my pdf? Any idea why this error occurs and how to solve it?

├─┬ @cyntler/[email protected] │ └─┬ [email protected] │ └── [email protected] └── [email protected]

yyueda avatar Oct 04 '24 02:10 yyueda

Any Leads on this?

prajilshrestha avatar Nov 13 '24 14:11 prajilshrestha

I just downgraded my pdfjs-dist to 4.3.136 for it to work

yyueda avatar Nov 14 '24 10:11 yyueda

Any update on this. We have the same issue and had to also downgrade pdfjs-dist to make it work. It also broke our CSPs

edouardr avatar May 22 '25 12:05 edouardr