Samuel Marandi
Samuel Marandi

Reputation: 11

html2pdf not working with reactjs in Firefox

We are using this package with ReactJS. This is working as per expectation in all browsers except Firefox. When the user interacts to download the PDF, Firefox hangs completely, and show attached message.Memory usage looks fine.

Screenshot of Browser Message:
Screenshot of Browser Message

Upvotes: 1

Views: 1500

Answers (2)

Akash Verma
Akash Verma

Reputation: 344

Are you trying dynamic import by any chance?

Upvotes: 1

Hemant
Hemant

Reputation: 170

As according to me, If I understood your question, it seems like its a module issue that you are using, because it's an open issue not Fixed yet. (description link:https://github.com/eKoopmans/html2pdf/issues/45 )

You can use some other popular library like react-pdf, PDFKit, pdfshift.

Hopefully, this can solve your issue.

Upvotes: 0

Related Questions