Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The API version "2.16.105" does not match the Worker version "2.15.349". #44

Open
dhruvkrstech opened this issue Nov 8, 2022 · 2 comments

Comments

@dhruvkrstech
Copy link

working with react-pdf-viewer library getting this error(The API version "2.16.105" does not match the Worker version "2.15.349".)
thus i have directy cloned the git repo from starter folder

this are my following version in my package.json file

"@react-pdf-viewer/core": "3.6.0",
"@react-pdf-viewer/default-layout": "3.6.0",
"pdfjs-dist": "^2.15.349",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^4.0.3"

pls let me know and reply within 24 hrs asap
Thankyou

Screenshot (297)

@ShafiqDevs
Copy link

same issue here. cloned the nextjs example and getting the same error

@mikemclin
Copy link

mikemclin commented Nov 17, 2022

I think it is because you installed using a caret semver range specifier ^2.15.349. This will install the latest version that matches that range (which was 2.16.105 at the time of your install).

Instead you need to install an exact version of the package, so you need to remove the leading caret - 2.15.349 in your package.json. After making the change, reinstall dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants