As @dosant says this will work for now, but this api will go away soon (probably before the next major release 8.0). If you are building for the future, it's highly recommended to switch to Kibana platform plugins. When you are creating a plugin with the plugin generator it will set up everything correctly - the most important thing is a central plugin class that gets passed in the setup and start services in the respective lifecycle methods. You can learn about this new more structured way of building Kibana plugins in https://github.com/elastic/kibana/blob/master/src/core/CONVENTIONS.md#technical-conventions
Thanks @flash1293, this is very useful !
I used the plugin generator one month ago and I don't have for example kibana.json at the top.
It has been recently updated ?
Going back to the problem, you know if using chrome in the backend with puppeteer is there some problem?
In the picture below is the result from a puppeteer run (using chrome.setIsVisible(false) in the frontend)
When you are looking for examples, check out the plugins in src/plugins - they all have kibana.json files specifying their dependencies.
About your puppeteer run - maybe it is screenshotting too early and your plugin didn't have time yet to hide the chrome? Very hard to help here effectively without the code or a minimal example to reproduce.
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.