# "xml2js" files empty in node\_modules kibana 7.6.0

**URL:** <https://discuss.elastic.co/t/xml2js-files-empty-in-node-modules-kibana-7-6-0/228057>\
**Category:** Kibana\
**Created:** [April 15, 2020, 8:18am UTC](https://discuss.elastic.co/t/xml2js-files-empty-in-node-modules-kibana-7-6-0/228057 "2020-04-15T08:18:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prernarana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prernarana/32/66339_2.png) [@prernarana](https://discuss.elastic.co/u/prernarana)\
**Post date:** [April 15, 2020, 8:18am UTC](https://discuss.elastic.co/t/xml2js-files-empty-in-node-modules-kibana-7-6-0/228057/1 "2020-04-15T08:18:23Z")

</div>

I am developing a kibana app plugin and using xml2js module in it. When I am integrating it in release version of Kibana, it is failing as required node modules "xml2js" and its dependencies "xmlbuilder" and "sax" exists but files are empty. Files are there but content is empty and that is why its breaking.  
eg.  
kibana-7.6.0-windows-x86\_64\kibana-7.6.0-windows-x86\_64\node\_modules\xml2js\lib\builder.js  
kibana-7.6.0-windows-x86\_64\kibana-7.6.0-windows-x86\_64\node\_modules\xml2js\lib\xml2.js

all the files are empty.

error:  
` error [07:42:35.906] TypeError: _xml2js.default.Builder is not a constructor at generatePayload (C:\Users\e00990\Desktop\kibana-7.6.0-windows-x86_64\kibana-7.6.0-windows-x86_64\plugins\mdn_locate_plugin\server\routes/routes.js:203:21) at handler (C:\Users\e00990\Desktop\kibana-7.6.0-windows-x86_64\kibana-7.6.0-windows-x86_64\plugins\mdn_locate_plugin\server\routes/routes.js:10:23) at module.exports.internals.Manager.execute (C:\Users\e00990\Desktop\kibana-7.6.0-windows-x86_64\kibana-7.6.0-windows-x86_64\node_modules\hapi\lib\toolkit.js:35:106) at Object.internals.handler (C:\Users\e00990\Desktop\kibana-7.6.0-windows-x86_64\kibana-7.6.0-windows-x86_64\node_modules\hapi\lib\handler.js:50:48) at exports.execute (C:\Users\e00990\Desktop\kibana-7.6.0-windows-x86_64\kibana-7.6.0-windows-x86_64\node_modules\hapi\lib\handler.js:35:36) at Request._lifecycle (C:\Users\e00990\Desktop\kibana-7.6.0-windows-x86_64\kibana-7.6.0-windows-x86_64\node_modules\hapi\lib\request.js:263:62)`

Is it a bug ? Is there any command that will update these packages with valid file content?

Note: I tried by replacing xml2js, xmlbuilder and sax modules with valid file contents and code worked but I do not want to manual update.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 15, 2020, 1:45pm UTC](https://discuss.elastic.co/t/xml2js-files-empty-in-node-modules-kibana-7-6-0/228057/3 "2020-04-15T13:45:46Z")

</div>

Did you add the modules in your package.json, if you're making a standalone plugin? Of if you're making the plugin in Kibana, you need to add it to the kibana package.json locally then and run `yarn kbn bootstrap`.

---

<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, 1:45pm UTC](https://discuss.elastic.co/t/xml2js-files-empty-in-node-modules-kibana-7-6-0/228057/4 "2020-05-13T13:45:51Z")

</div>

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