react-file-viewer
react-file-viewer copied to clipboard
Can't open a pdf file
Hi, get this error.
Deprecated API usage: getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument
Warning: Setting up fake worker.
Uncaught SyntaxError: Unexpected token <
Error: Loading chunk 0 failed at HTMLScriptElement.r (index.js:1)
index.js:1 Uncaught (in promise) Error: Loading chunk 0 failed at HTMLScriptElement.r (index.js:1)
I'm afraid react-file-viewer uses the old version of pdfjs-dist. UPD: Noticed another bug, #app get background: pink; UPD 2: Because of id, on one page can be only one instance of react-file-viewer
I too am facing the same issue when trying to load a PDF file.
Same problem here.
This is very important file type to support, please fix it.
You could edit in driver folder, pdf-viewer with another pdf view library, I would recommend react-pdf (https://github.com/diegomura/react-pdf) which we can custom UI design for PDF viewer controller
Hi guys, im writing here because Im facinge problem when opening pdf files and the error that i get is this one : "Each child in an array or iterator should have a unique "key" prop. Check the top-level render call using
What i get in the DOM is a white react file viewer div empty, any suggestion on how to resolve this?
@LeonardoPlacanica I don't think the warning that you get has something to with the empty div...
did you resolve the issue? I'm having the same problem (empty div)
Same issue here https://github.com/plangrid/react-file-viewer/issues/83#issuecomment-447170141
[HTTP/1.1 200 OK 0ms] Deprecated API usage: getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument
You could edit in driver folder, pdf-viewer with another pdf view library, I would recommend react-pdf (https://github.com/diegomura/react-pdf) which we can custom UI design for PDF viewer controller
Hey, can you tell me how can I replace my pdf driver?