Writing Custom Plugins


I'm currently developing a custom plugin for Kibana 7.8.0. I've followed the steps to generate a sample plugin. It successfully shows up on my kibana instance built from source.

When I try to add this plugin to my kibana instance built from RPM and click on the plugin, I see a blank page with no UI elements and the console outputs the following error message __REPLACE_WITH_PUBLIC_PATH__0.plugin.js:1 Uncaught SyntaxError: Unexpected token '<'.

I made no changes to this file when loading the plugin (copying the plugin directory into kibana/plugins) and the versions of Kibana are the same. I'm was able to reproduce this exact error on two kibana instances installed using RPM. Does anybody know what could be causing this syntax error when the code was generated using a boilerplate script? Are there any steps I am missing to load my custom plugin?

Any help would be greatly appreciated.

When adding the plugin to the Kibana instance built from RPM, you should be using the plugin installer to install a build of your plugin. Based on your information it looks like that might not have been clear.

Hope that helps!

Use yarn build to build your custom plugin.

Here is a link to plugin installer documentation: https://www.elastic.co/guide/en/kibana/master/install-plugin.html

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