# Kibana 8.8.8 external plugin failure

**URL:** <https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240>\
**Category:** Kibana\
**Tags:** docker, kibana-plugin-development\
**Created:** [June 5, 2023, 3:30pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240 "2023-06-05T15:30:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 5, 2023, 3:30pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/1 "2023-06-05T15:30:22Z")

</div>

Hi we have upgraded our plugin from Kibana 8.6.2 to Kibana 8.8.0. We now get this error when launching the plugin from Kibana.

We build like before using

```auto
RUN BUILD_TS_REFS_DISABLE=true yarn kbn bootstrap --no-cache --debug --verbose
WORKDIR /kibana/plugins/wind
RUN npm i --force
RUN yarn plugin-helpers build --kibana-version 8.8.0 --debug --verbose
FROM docker.elastic.co/kibana/kibana:8.8.0
RUN kibana-plugin install <file>
RUN kibana --optimize --env.name=production --logging.json=false

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8b64c756eb4be56cc7439365d4605a9e3b9f44b3.png)

Any hints to debug these types of errors?

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 5, 2023, 9:48pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/2 "2023-06-05T21:48:37Z")

</div>

Note that we do not have any issues with running the plugin in a dev env with

```auto
yarn dev --watch and yarn start

```

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 6, 2023, 10:54am UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/3 "2023-06-06T10:54:35Z")

</div>

seems wind plugin is causing problems, i am not sure what that is ?

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 6, 2023, 1:50pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/4 "2023-06-06T13:50:47Z")

</div>

That is our external plugin name. There is an issue with it with the build only. We do not know why it works in dev but not in the build.

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 6, 2023, 11:57pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/5 "2023-06-06T23:57:43Z")

</div>

Any tips to help us debug this issue? I have set the mode to "development" in packages/kbn-ui-shared-deps-npm/webpack.config.js but that did not give us any extra debug info.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 7, 2023, 9:42am UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/6 "2023-06-07T09:42:38Z")

</div>

i suggest checking what exactly code is doing there, what is the thing that is undefined.

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 7, 2023, 12:37pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/7 "2023-06-07T12:37:14Z")

</div>

Figuring out what the exact issue is, is the the problem. This is the failing code.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a856d7c5683c1eb6112d5c91e58ba24126370ce3.png)

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 8, 2023, 3:35pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/8 "2023-06-08T15:35:38Z")

</div>

Maybe these changes are causing this issue? [Transpile packages on demand, validate all TS projects by spalger · Pull Request #146212 · elastic/kibana · GitHub](https://github.com/elastic/kibana/pull/146212)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 8, 2023, 3:39pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/9 "2023-06-08T15:39:33Z")

</div>

> [@kbujold\_wr](#):
>
> That is our external plugin name. There is an issue with it with the build only. We do not know why it works in dev but not in the build.

Not sure what the issue is, but recently I saw a post about another custom plugin that works while in `dev` mode but not in `prod` mode.

It was this [one](https://discuss.elastic.co/t/enhanced-table-plugin-on-elastic-cloud/335214/3).

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 8, 2023, 3:48pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/10 "2023-06-08T15:48:28Z")

</div>

The title of this post should also be "Kibana 8.8.0 external plugin failure" sorry

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 8, 2023, 3:52pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/11 "2023-06-08T15:52:56Z")

</div>

Thanks @leandrojmp this looks more like our issue with the kbn-ui-shared-deps-npm error. [[Plugins] Problem with building plugins in 8.7.0 · Issue #154325 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/154325). It appears it is reproducible also in 8.8.0.

---

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [June 14, 2023, 7:52pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/12 "2023-06-14T19:52:00Z")

</div>

This was our issue. [Kibana 8.8.0 - External plugins not running on Kibana Docker images (production)](https://discuss.elastic.co/t/kibana-8-8-0-external-plugins-not-running-on-kibana-docker-images-production/335555)

---

<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 12, 2023, 7:52pm UTC](https://discuss.elastic.co/t/kibana-8-8-8-external-plugin-failure/335240/13 "2023-07-12T19:52:09Z")

</div>

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