HTML5 button PDF works on my localhost but does not work on production. Fiddle included.

HTML5 button PDF works on my localhost but does not work on production. Fiddle included.

fuggfuggfuggfuggfuggfugg Posts: 2Questions: 1Answers: 0

Link to test case: https://jsfiddle.net/fuggfuggfugg/69hwbjz4/
Debugger code (debug.datatables.net):
Error messages shown: i is not defined on page load, (o || e.pdfMake).createPdf is not a function when PDF button is clicked
Description of problem: I can export to PDF with the same code on my localhost however this does not work when deployed to production. If you look at the fiddle, the first error as soon as the page load is i is not defined, this I believe is module.exports. Then when you click on the PDF button you should see the error createPDF is not a function.

Any help is appreciated.

Answers

  • fuggfuggfuggfuggfuggfugg Posts: 2Questions: 1Answers: 0


    Attaching image

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    It's hard to tell as your libraries are minified, but those errors are all within PDFmake so it would be worth questioning on their forum page.

    Colin

Sign In or Register to comment.