# Kibana 7.16.3 installing/using jsPDF for custom plugins

**URL:** <https://discuss.elastic.co/t/kibana-7-16-3-installing-using-jspdf-for-custom-plugins/306725>\
**Category:** Kibana\
**Created:** [June 8, 2022, 4:20pm UTC](https://discuss.elastic.co/t/kibana-7-16-3-installing-using-jspdf-for-custom-plugins/306725 "2022-06-08T16:20:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)\
**Post date:** [June 8, 2022, 4:20pm UTC](https://discuss.elastic.co/t/kibana-7-16-3-installing-using-jspdf-for-custom-plugins/306725/1 "2022-06-08T16:20:59Z")

</div>

We are in the process of converting our Kibana 7.10.2 custom plugins into Kibana 7.16.3 custom plugins. We use the `jsPDF` module for creating pdfs of our dashboards for downloading. We are having issues using `jsPDF` in Kibana 7.16.3. We tracked it down to the `fflate` module that gets installed with `jsPDF`. For some reason `fflate` only has a couple functions defined within it when installed through Kibana. So `jsPDF` is trying to call a function from within `fflate` that is not there. Through some googling, we have found this message on the `fflate` readme file:

`If your environment does not support bundling:` (then import fflate like this)  
`import * as fflate from 'fflate/esm/browser.js'`

If we modify the `jsPDF` js code to load `fflate` like what is listed above, then jsPDF works as it should. However, we don't want to keep a local copy of `jsPDF` and modify it to load `fflate` in this way. We just want to do an npm install of `jsPDF`. Does anyone know why the bundling seems to not be working properly in Kibana 7.16.3 custom plugins? Or if there is a setting we need to change to support this? We didn't have this issue with Kibana 7.10.2.

---

<div class="post-metadata">

**Author:** ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)\
**Post date:** [June 22, 2022, 12:56pm UTC](https://discuss.elastic.co/t/kibana-7-16-3-installing-using-jspdf-for-custom-plugins/306725/2 "2022-06-22T12:56:39Z")

</div>

We're still having issues with this. Any one have any suggestions on why Kibana 7.16.3 doesn't seem to be bundling node modules?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 20, 2022, 12:56pm UTC](https://discuss.elastic.co/t/kibana-7-16-3-installing-using-jspdf-for-custom-plugins/306725/3 "2022-07-20T12:56:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
