# Kibana 8.14.3 plugin build failure breaks Kibana

**URL:** <https://discuss.elastic.co/t/kibana-8-14-3-plugin-build-failure-breaks-kibana/368278>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [October 5, 2024, 12:03am UTC](https://discuss.elastic.co/t/kibana-8-14-3-plugin-build-failure-breaks-kibana/368278 "2024-10-05T00:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdsalty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tdsalty/32/138088_2.png) [@tdsalty](https://discuss.elastic.co/u/tdsalty)\
**Post date:** [October 5, 2024, 12:03am UTC](https://discuss.elastic.co/t/kibana-8-14-3-plugin-build-failure-breaks-kibana/368278/1 "2024-10-05T00:03:44Z")

</div>

Two part problem. Trying to be brief.

**Part 1 - Plugin build error**  
Plugin works fine in dev environment.

Here's the yarn error - it seems that the outdated caniuse-lite is causing the problem. I've tried npx update-browserslist-db@latest from the plugin directory but it has no effect. This is blocking my plugin build.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/4/741dfcbbbd56f3e3789351559ae725316f4daa00.png)

**Part 2 - Kibana plugin install/removal breaks Kibana**  
When building the plugin, I didn't immediately notice the caniuse-lite error that apparently stopped processing but not the plugin build process (see related issue on error handling [here](https://github.com/elastic/kibana/issues/193927)). I installed the plugin into a running Kibana server and it failed (as you may expect). However, after removing the plugin (attempting to use /bin/kibana-plugin remove and just removing the plugin folder separately) and restarting Kibana, the UI is failing because it's still looking for the missing .js from my plugin (that was removed). Now I have a downed Kibana server until I can fix the problem, plugin, or reinstall. Tested in two browsers after cache-clearing and so on.

Do we know of a way to "clean up" plugins or to bump the optimizer to see the removal?

---

<div class="post-metadata">

**Author:** ![tdsalty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tdsalty/32/138088_2.png) [@tdsalty](https://discuss.elastic.co/u/tdsalty)\
**Post date:** [October 5, 2024, 3:12am UTC](https://discuss.elastic.co/t/kibana-8-14-3-plugin-build-failure-breaks-kibana/368278/2 "2024-10-05T03:12:06Z")

</div>

UPDATE: I was able to figure out the first problem. I needed to update caniuse-lite from the main kibana directory instead of in my plugin directory. This freed me up to build my plugin.

I'd still appreciate any insight on "clean up" for Kibana plugins.
