Open kalyanbabutangella opened 2 years ago
Any update on this issue?
Any update on this issue?
no update
It seems like the issue is with the firebase storage, as I am also using firebase storage and getting the same error as yours. Adding a fileType key in every document object along with uri key, helped me overcome this error but now the file renderer keeps on loading.
<DocViewer
pluginRenderers={DocViewerRenderers}
documents={[{uri: props.documentURI, fileType: "pdf"}]}
/>
It seems like the issue is with the firebase storage, as I am also using firebase storage and getting the same error as yours. Adding a fileType key in every document object along with uri key, helped me overcome this error but now the file renderer keeps on loading.
<DocViewer pluginRenderers={DocViewerRenderers} documents={[{uri: props.documentURI, fileType: "pdf"}]} />
Ho, Yeah then have you overcame the loading or not?
It seems like the issue is with the firebase storage, as I am also using firebase storage and getting the same error as yours. Adding a fileType key in every document object along with uri key, helped me overcome this error but now the file renderer keeps on loading.
<DocViewer pluginRenderers={DocViewerRenderers} documents={[{uri: props.documentURI, fileType: "pdf"}]} />
Ho, Yeah then have you overcame the loading or not?
Unfortunately not yet :'(
Unfortunately not yet :'(
If you get Any solution for this can you please let me know @FaizanMostafa
Unfortunately not yet :'(
If you get Any solution for this can you please let me know @FaizanMostafa
react-doc-viewer is unable(keeps loading) to load the document from firebase storage because of CORS error. Follow this stackoverflow answer to set the CORS origin on your google cloud bucket and it will resolve the issue(at least it did for me). Cheers...