-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
Hi,
I have it working for all other formats except pdf. Is there anything I am doing wrong? I always see this:

My code is:
<DocViewer pluginRenderers={DocViewerRenderers} documents={[{uri: `https://rest.fs.neo.org/v1/get/${item?.parentID}/${item?.id}`, fileType: "pdf"}]} />
importing
import DocViewer, {DocViewerRenderers} from "react-doc-viewer";
this works perfectly for all other formats/extensions and the URL works fine in the browser - I can see the pdf.
In the console I see
Warning: Error: Setting up fake worker failed: "Importing a module script failed.".
Interestingly, if I change it to:
<DocViewer pluginRenderers={[PDFRenderer]}
I now see

any help appreciated.
proup24, joy-mollick and sumansaurabh00001proup24, KreisonReis, joy-mollick, shamprasadrh and Shen-Yukang
Metadata
Metadata
Assignees
Labels
No labels