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
My team currently has a Component that implements <FileViewer> that works, but our tests warn us that:
console.log node_modules/react-file-viewer/dist/index.js:11
Deprecated API usage: getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument
Would love to see this updated as react-file-viewer a good library.
Similar issue (but this appears to be a non-functioning component): #83
Maybe I solved this problem by putting FileViewer in the mod and getting an error: Depreciated API usage: getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument, Then I only showed FileViewer 3 seconds after the modal display, and the file could be displayed normally
My team currently has a Component that implements
<FileViewer>
that works, but our tests warn us that:Would love to see this updated as
react-file-viewer
a good library.Similar issue (but this appears to be a non-functioning component): #83
Relevant information on updating package:
mozilla/pdf.js#8538
mozilla/pdf.js@5135aa9#diff-dd42e9b2d2a652b8e312efa567698aa6
It appears the call to
getDocument
simply needs to be updated to the simplified parameters, with callbacks being set withonProgress
,onPassword
, etc.The text was updated successfully, but these errors were encountered: