Kibana 8.9.0 plugin build failure

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

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.

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

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

I have raised an issue Cannot build external Kibana plugin in 8.9.0 · Issue #162637 · elastic/kibana · GitHub

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

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