Open
Description
openedon Nov 2, 2022
Problem
Management plugin declares share
as an optional dependency, but does not handle a use-case when it's not supplied. This was not an issue until now as probably the start order of plugins was such that all plugins had this as a dependency as well. However, when creating a new plugin with "management" as a dependency, this was causing an error on Kibana start:
TypeError: Cannot read properties of undefined (reading 'url')
at ManagementPlugin.setup (plugin.ts:42:1)
coming from:
https://github.com/elastic/kibana/blob/main/src/plugins/management/public/plugin.ts#L78
This was mitigated in: #144381 by making "share" a required dependency, but I assume you would like a proper fix for this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment