cyntler / cyntler/react-doc-viewer

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

Open
#296 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

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/react-doc-viewer@1.17.0
│ └─┬ react-pdf@9.1.1
│ └── pdfjs-dist@4.4.168
└── pdfjs-dist@4.5.136

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the PDF rendering with the dependency tree shown for @cyntler/react-doc-viewer, react-pdf, and the two pdfjs-dist versions. Trace how the API and worker versions are selected; done means the PDF renders without the version-mismatch warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.