# Unable to generate plugin that works with any Kibana 7.7 releases

**URL:** <https://discuss.elastic.co/t/unable-to-generate-plugin-that-works-with-any-kibana-7-7-releases/235994>\
**Category:** Kibana\
**Created:** [June 5, 2020, 5:45pm UTC](https://discuss.elastic.co/t/unable-to-generate-plugin-that-works-with-any-kibana-7-7-releases/235994 "2020-06-05T17:45:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Gege](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_gege/32/45595_2.png) [@Paul\_Gege](https://discuss.elastic.co/u/Paul_Gege)\
**Post date:** [June 5, 2020, 5:45pm UTC](https://discuss.elastic.co/t/unable-to-generate-plugin-that-works-with-any-kibana-7-7-releases/235994/1 "2020-06-05T17:45:40Z")

</div>

Hi guys, I've been having trouble generating Kibana plugins that work with Kibana versions 7.7.0/7.7.1.  
Here are the steps I've used to generate my plugins:

1. Clone the kibana github repo
2. Run `git checkout 7.7`
3. Run `yarn kbn bootstrap`
4. Run `node scripts/generate_plugin.js [my_plugin_name]` (choose the correct version etc.)
5. I copy the generated plugin and move it to the plugin folder of my Kibana version 7.7.0/7.7.1 (i've tried both)
6. I then delete the `optimize` folder and run kibana using `./kibana` in the bin folder.

These same steps have worked for me when I was working with kibana 7.6 versions. But for the 7.7 versions I get the following error when I start kibana in my browser:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/1/81d354c2cc044d84f7c23f501224d6eb3edff0cf.png)

What am I doing wrong? Is this an issue with what i'm doing or is it an issue with Kibana? If someone can run through these steps and let me know that would be great.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 11, 2020, 3:34pm UTC](https://discuss.elastic.co/t/unable-to-generate-plugin-that-works-with-any-kibana-7-7-releases/235994/2 "2020-06-11T15:34:14Z")

</div>

Instead of deleting optimize folder, have you tried running `yarn kbn clean && yarn kbn bootstrap`?

---

<div class="post-metadata">

**Author:** ![Paul\_Gege](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_gege/32/45595_2.png) [@Paul\_Gege](https://discuss.elastic.co/u/Paul_Gege)\
**Post date:** [June 11, 2020, 5:00pm UTC](https://discuss.elastic.co/t/unable-to-generate-plugin-that-works-with-any-kibana-7-7-releases/235994/3 "2020-06-11T17:00:59Z")

</div>

I've done that, when you generate plugins using the Kibana 7.7 branch from github, you get a plugin generated but this plugin is missing a package.json and index.js file

---

<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 9, 2020, 5:01pm UTC](https://discuss.elastic.co/t/unable-to-generate-plugin-that-works-with-any-kibana-7-7-releases/235994/4 "2020-07-09T17:01:15Z")

</div>

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