0

As the title describes, I am using react-pdf to render a link to download a PDF via clicking a <PDFDownloadLink> link.

This all works great within my localhost server, however after running react-app-rewired build and deploying to my environment, it doesn't appear to be working...

Usage in my component

<PDFDownloadLink
    className="pdf-link"
    document={<MyPDF {...{customerDetails}} />}
    fileName="your-summary.pdf"
>
    Download summary
</PDFDownloadLink>

Render on my localhost server (express server):

enter image description here

enter image description here

Render on my environment after going through the build process: enter image description here

enter image description here

It appears that the href blob isn't being tagged in the build version...

physicsboy
  • 5,656
  • 17
  • 70
  • 119

0 Answers0