# Kibana plugin install process ignored a js file

**URL:** <https://discuss.elastic.co/t/kibana-plugin-install-process-ignored-a-js-file/174890>\
**Category:** Kibana\
**Created:** [April 1, 2019, 11:25pm UTC](https://discuss.elastic.co/t/kibana-plugin-install-process-ignored-a-js-file/174890 "2019-04-01T23:25:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bbking/32/77563_2.png) [@bbking](https://discuss.elastic.co/u/bbking)\
**Post date:** [April 1, 2019, 11:25pm UTC](https://discuss.elastic.co/t/kibana-plugin-install-process-ignored-a-js-file/174890/1 "2019-04-01T23:25:01Z")

</div>

Hi all! I have the following file structure for a custome Kibana plugin. The constants.js contains some constants that are shared between front and back end. Once I create a distributable archive file and install the plugin using `bin/kibana-plugin install file://[path]`, it shows `FATAL Error: Cannot find module '../../../constants'`.  
I checked that in `plugins` folder, the contants.js file is not there.  
Does anyone have any ideas about it? Why does the file not show up when I install the plugin?

```auto
public/
server/
index.js
constants.js
package.json

```

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [April 1, 2019, 11:40pm UTC](https://discuss.elastic.co/t/kibana-plugin-install-process-ignored-a-js-file/174890/2 "2019-04-01T23:40:16Z")

</div>

Your constants module may not be exporting anything or the relative path may be incorrect.

---

<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:** [April 29, 2019, 11:40pm UTC](https://discuss.elastic.co/t/kibana-plugin-install-process-ignored-a-js-file/174890/3 "2019-04-29T23:40:16Z")

</div>

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