# Packaging Kibana Plugins

**URL:** <https://discuss.elastic.co/t/packaging-kibana-plugins/190425>\
**Category:** Kibana\
**Created:** [July 15, 2019, 5:02am UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425 "2019-07-15T05:02:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rndrev](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@rndrev](https://discuss.elastic.co/u/rndrev)\
**Post date:** [July 15, 2019, 5:02am UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425/1 "2019-07-15T05:02:09Z")

</div>

I have created a custom Kibana plugin at [https://github.com/rndrev/fsm\_plugin](https://github.com/rndrev/fsm_plugin)

How can I package this plugin for distribution as a zip file?

I tried running npm run build in the development environment but it errors out!

Thanks,  
rndrev

---

<div class="post-metadata">

**Author:** ![rndrev](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@rndrev](https://discuss.elastic.co/u/rndrev)\
**Post date:** [July 15, 2019, 5:14am UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425/2 "2019-07-15T05:14:12Z")

</div>

Here is the log where it errors out:

info [kibana] Transpiling sources with typescript compiler  
│ info Compiling /home/user/devel2/kibana/tsconfig.types.json project  
│ debg /home/user/devel2/kibana/node\_modules/typescript/bin/tsc --pretty true --project /home/user/devel2/kibana/tsconfig.types.json │ info Compiling /home/user/devel2/kibana/build/kibana/tsconfig.types.json project │ debg /home/user/devel2/kibana/node\_modules/typescript/bin/tsc --pretty true --project /home/user/devel2/kibana/build/kibana/tsconfig.types.json  
│ info Compiling /home/user/devel2/kibana/build/kibana/tsconfig.json project  
│ debg /home/user/devel2/kibana/node\_modules/typescript/bin/tsc --pretty true --project /home/user/devel2/kibana/build/kibana/tsconfig.json │ info Compiling /home/user/devel2/kibana/build/kibana/tsconfig.browser.json project │ debg /home/user/devel2/kibana/node\_modules/typescript/bin/tsc --pretty true --project /home/user/devel2/kibana/build/kibana/tsconfig.browser.json  
│ debg src/core/public/notifications/toasts/global\_toast\_list.tsx:20:30 - error TS2305: Module ''@elastic/eui'' has no exported member 'Toast'.  
│ debg  
│ debg 20 import { EuiGlobalToastList, Toast } from '@elastic/eui';  
│ debg ~~~~~  
│ debg  
│ debg src/core/public/notifications/toasts/index.ts:22:10 - error TS2305: Module ''@elastic/eui'' has no exported member 'Toast'.  
│ debg  
│ debg 22 export { Toast } from '@elastic/eui';  
│ debg ~~~~~  
│ debg  
│ debg src/core/public/notifications/toasts/toasts\_service.tsx:23:10 - error TS2305: Module ''@elastic/eui'' has no exported member 'Toast'.  
│ debg  
│ debg 23 import { Toast } from '@elastic/eui';  
│ debg ~~~~~

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 15, 2019, 2:29pm UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425/3 "2019-07-15T14:29:12Z")

</div>

@rndrev running the `build` script of your plugin is the right way to do it.  
Those errors you are having looks legit to me, so in order to pack the plugin as a zip archive, you will need to solve them.

Have you generated your plugin from the last available plugin template generator? Also, are you compiling against the last version?

---

<div class="post-metadata">

**Author:** ![rndrev](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@rndrev](https://discuss.elastic.co/u/rndrev)\
**Post date:** [July 16, 2019, 4:43am UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425/4 "2019-07-16T04:43:15Z")

</div>

Hey tiagocosta,

My plugin is programmed for Kibana 6.7.1, so not the latest version. Is there another way to include the plugin in a production instance...can I just copy the files over?

Thanks,  
rndrev

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 16, 2019, 3:13pm UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425/5 "2019-07-16T15:13:42Z")

</div>

Well I guess that just copy the plugin folder to your production instance under `plugins` folder would work, but you should really try to solve the legit errors and run the build on the plugin itself.

Cheers

---

<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:** [August 13, 2019, 3:13pm UTC](https://discuss.elastic.co/t/packaging-kibana-plugins/190425/6 "2019-08-13T15:13:55Z")

</div>

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