# Why library files of node modules dependencies are empty in release version of Kibana

**URL:** <https://discuss.elastic.co/t/why-library-files-of-node-modules-dependencies-are-empty-in-release-version-of-kibana/228076>\
**Category:** Kibana\
**Created:** [April 15, 2020, 9:50am UTC](https://discuss.elastic.co/t/why-library-files-of-node-modules-dependencies-are-empty-in-release-version-of-kibana/228076 "2020-04-15T09:50:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranay\_bhatnagar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_bhatnagar/32/64501_2.png) [@pranay\_bhatnagar](https://discuss.elastic.co/u/pranay_bhatnagar)\
**Post date:** [April 15, 2020, 9:50am UTC](https://discuss.elastic.co/t/why-library-files-of-node-modules-dependencies-are-empty-in-release-version-of-kibana/228076/1 "2020-04-15T09:50:45Z")

</div>

I want to know why library files of node modules are empty of some external dependencies.

I am placing the build of my plugin inside plugin folder in release version of Kibana and running it but the dependencies are not working inside Kibana and throwing error of dependency not defined. I am using xml2js dependency in my plugin but it is throwing error but when i am working in development version it is working fine but when placing the plugin folder in the Kibana release version it is throwing error.

kibana-7.6.0-windows-x86\_64\kibana-7.6.0-windows-x86\_64\node\_modules\xml2js\lib\xml2.js

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [April 15, 2020, 12:14pm UTC](https://discuss.elastic.co/t/why-library-files-of-node-modules-dependencies-are-empty-in-release-version-of-kibana/228076/2 "2020-04-15T12:14:54Z")

</div>

Could you clarify what error you're getting?

---

<div class="post-metadata">

**Author:** ![pranay\_bhatnagar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_bhatnagar/32/64501_2.png) [@pranay\_bhatnagar](https://discuss.elastic.co/u/pranay_bhatnagar)\
**Post date:** [April 15, 2020, 12:25pm UTC](https://discuss.elastic.co/t/why-library-files-of-node-modules-dependencies-are-empty-in-release-version-of-kibana/228076/3 "2020-04-15T12:25:21Z")

</div>

xml2js is not defined is the error we are getting

---

<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:** [May 13, 2020, 12:28pm UTC](https://discuss.elastic.co/t/why-library-files-of-node-modules-dependencies-are-empty-in-release-version-of-kibana/228076/4 "2020-05-13T12:28:30Z")

</div>

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