I am seeing this error below during yarn build of our plugin. We had no build errors a few weeks ago.
We do not get a build anymore, we should see this output in the logs below from yarn build, but we do not anymore.
succ browser bundle created at plugins/wind/build/kibana/wind/target/public
$ yarn plugin-helpers build --debug --verbose --kibana-version 8.9.0
$ node ../../scripts/plugin_helpers build --debug --verbose --kibana-version 8.9.0
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
debg KIBANA_CI_STATS_CONFIG environment variable not found, disabling CiStatsReporter
info deleting the build and target directories
debg creating build output dir [/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
│ERROR Browserslist: caniuse-lite is outdated. Please run:
│ 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]
succ plugin archive created
debg CIStatsReporter committerHash: ee1de24dab4612b0eecf
Done in 98.21s.
Removing intermediate container 44d6540975c2
---> a0e8f9137f7c
One the left a successful build and right the failed one
If you're not able to update right not then you have a couple of options:
Continue with the locally changed version that you have until you are ready to upgrade, at which point you'll be able to pull the fix with that version.
Consider raising a PR contributing the fix as a backport for the version you are using.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.