Ask Your Question
3

While trying to display my pdf using react-pdf, I am experiencing an error indicating that the version "2.12.313" of the API does not correspond with the version "2.4.456" of the Worker.

asked 2022-06-28 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-11-23 21:00:00 +0000

scrum gravatar image

This error occurs when the version of the react-pdf library and the worker script are not compatible with each other. To resolve this issue, make sure that you are using the same version of both the react-pdf library and the worker script.

To do this, you can try updating the version of the react-pdf library to match the version of the worker script. Alternatively, you can try downgrading the version of the worker script to match the version of the react-pdf library.

You can also try uninstalling and reinstalling both the react-pdf library and the worker script to ensure that you have the latest compatible versions. Once you have made the necessary updates to both the react-pdf library and the worker script, the error should no longer appear, and you should be able to display your PDF using react-pdf.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-28 11:00:00 +0000

Seen: 11 times

Last updated: Nov 23 '22