You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2022. It is now read-only.
There was a botched release of pdf.js dist, and a subsequent webjar release, which breaks the vaadin pdf viewer. The release has been removed from the github repository, but the webjar is still there. The botched release results in a javascript error of mismatched version numbers between the components of pdf.js.
There was a botched release of pdf.js dist, and a subsequent webjar release, which breaks the vaadin pdf viewer. The release has been removed from the github repository, but the webjar is still there. The botched release results in a javascript error of mismatched version numbers between the components of pdf.js.
Here's a discussion on the botched release:
mozilla/pdf.js#10416 (comment)
And you can see that the current pdf.js dist release has been rolled back to 2.0.48:
https://github.com/mozilla/pdfjs-dist
In the POM for vaadin-pdf-viewer the webjar dependency is pulled in with:
which is very permissive. It matches on the botched version 2.2.2
As a work around, I pinned the resolved version in my project POM
To fix this for everyone else and to be more conservative with likely-breaking changes, I'd recommend a much more restrictive dependency:
or maybe even on the specific version.
The text was updated successfully, but these errors were encountered: