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.