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.
Asked: 2022-06-28 11:00:00 +0000
Seen: 11 times
Last updated: Nov 23 '22