Search code examples
javascriptjquerydatatablesunderscore.js-templatingpdfmake

PDFMake conflicts with Underscore


While in the process of adding HTML5 export functionality to jQuery's dataTables I noticed that one of the required plugins (PDFMake) conflicts with my current usage of underscore.js templating.

I was wondering if anyone else had encountered this issue or has any insight as to how to resolve this conflict.


Solution

  • The issue was a result of PDFMake also including underscore.js however at a lower version.

    I was able to resolve this conflict by simply including the newer version of underscore after the inclusion of PDFMake.

    This restored functionality for the rest of the app and didn't seem to effect PDFMake.