I'm currently experimenting with plugin development for Kibana v4.5.0. The documentation for plugin dev on Kibana, while sparse, lists "hacks" as a valid uiExport type (documentation).
However, whenever I attempt to create a plugin (creatively named "plugin_name") with a uiExport type of "hacks"...
index.js
export default kibana => {
return new kibana.Plugin({
uiExports: {
hacks: [
'plugins/plugin_name/hack'
]
}
});
};
...the Kibana dev instance crashes with the following error:
FATAL [Error: unknown export types hacks in plugin plugin_name]
From which, I assume that the "hacks" type is no more. There was an issue opened back in March that seems to relate to this problem (link), but it has since been closed with no resolution.
Has this uiExport type been changed or removed in Kibana?
In v4.5, "hacks" is no longer a valid UiExport type. However, it was added into v5.0.
Version 4.5: https://github.com/elastic/kibana/blob/4.5/src/ui/UiExports.js#L47
Version 5.0: https://github.com/elastic/kibana/blob/5.0/src/ui/ui_exports.js#L86
"hacks" is missing from the switch statement within UiExports.js in v4.5, but is present within v5.0.