# Kibana 8.9.0 plugin build failure

**URL:** <https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [July 26, 2023, 9:16pm UTC](https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351 "2023-07-26T21:16:17Z")\
**Posts on this page:** 5\
**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:** [July 26, 2023, 9:16pm UTC](https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351/1 "2023-07-26T21:16:17Z")

</div>

Hi we have updated our plugin from 8.8.1 to 8.9.0 and are hitting this error

```auto
yarn bootstrap
yarn run v1.22.19
$ yarn kbn bootstrap && yarn install
$ node ../../scripts/kbn bootstrap
[bazel] INFO: Invocation ID: 63a2c789-2fc8-4973-8dce-701dee1e411d
[bazel] INFO: Analyzed 3 targets (1 packages loaded, 7 targets configured).
[bazel] INFO: Found 3 targets...
[bazel] INFO: Elapsed time: 0.490s, Critical Path: 0.14s
[bazel] INFO: 1 process: 1 internal.
[bazel]
success shared bundles built
success yarn.lock analysis completed without any issues
success vscode config updated
[1/4] Resolving packages...
warning Resolution field "graphql-tools@4.0.7" is incompatible with requested version "graphql-tools@4.0.4"
warning Resolution field "graphql-tools@4.0.7" is incompatible with requested version "graphql-tools@4.0.4"
success Already up-to-date.
Done in 6.30s.

yarn build
yarn run v1.22.19
$ yarn plugin-helpers build --debug --verbose
$ node ../../scripts/plugin_helpers build --debug --verbose
 debg KIBANA_CI_STATS_CONFIG environment variable not found, disabling CiStatsReporter
 info deleting the build and target directories
 debg creating build output dir [/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/plugins/wind/build/kibana/wind]
 info run bazel and build required artifacts for the optimizer
 succ bazel run successfully and artifacts were created
 info running @kbn/optimizer
 │ succ browser bundle created at plugins/wind/build/kibana/wind/target/public
 │ info stopping @kbn/optimizer
 info copying assets from `public/assets` to build
 info copying server source into the build and converting with babel
 info running yarn to install dependencies
 info compressing plugin into [wind-8.9.0.zip]
ERROR UNHANDLED ERROR
ERROR Error: ENOENT: no such file or directory, lstat '../@apollo/protobufjs/bin/pbjs'
 debg CIStatsReporter committerHash: bce560392393d742e922
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 27, 2023, 2:06pm UTC](https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351/2 "2023-07-27T14:06:35Z")

</div>

Can you try by using ` yarn kbn reset` before running `yarn kbn bootstrap` it looks like an issue with some missing dependency

---

<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:** [July 27, 2023, 2:44pm UTC](https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351/3 "2023-07-27T14:44:33Z")

</div>

Unfortunately that is not the issue. This test plugin fails as well [GitHub - brenoandrade-wdrv/graphql-plugin-example: Kibana plugin approaching simple query on GraphQL API](https://github.com/brenoandrade-wdrv/graphql-plugin-example)

I have raised an issue [Cannot build external Kibana plugin in 8.9.0 · Issue #162637 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/162637)

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 27, 2023, 2:47pm UTC](https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351/4 "2023-07-27T14:47:36Z")

</div>

Thanks, I've pinged the Ops team to take a look at it

---

<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 24, 2023, 2:48pm UTC](https://discuss.elastic.co/t/kibana-8-9-0-plugin-build-failure/339351/5 "2023-08-24T14:48:19Z")

</div>

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