@16318a22907f3cbfa04b It seems plugin_helpers build only legacy plugins in 7.9.
1.Could you update Kibana to 7.10?
2.Did you use plugin-generator to create my_plugin structure? If so, yarn build in /plugins/my_plugin will build a distributable version.
3.index.js is not required in/plugins/my_plugin folder.
Now yarn build create plugin zip and I can install plugin. Kibana starts with plugin. I see it in the list on the console (cli) when kibana starts. Now no errors. But kibana don't work, I see red banner when connect to http.
With yarn start --oss everything work fine.
Maybe someone has an example of how to build a plugin with dependencies
you are trying to build Kibana Platform plugin, but unfortunately plugin_helpers build only Legacy plugins in 7.9. You have to use this workaround https://github.com/elastic/kibana/issues/82466 or migrate Kibana to 7.10 where this problem has been fixed.
I think I'm getting something wrong. If I can't use plugin-helpers, maybe I should do the build in some other way? Should I use node scripts/build_kibana_platform_plugins --dist? My plugin is made in a new format. What is the correct build sequence in this case?
All right. I Should have looked here. Now everything is working. I will only add that the plugin archive should be done on Linux. On a Windows machine it turns out to be incorrect and there will be an error during installation Plugin installation was unsuccessful due to error "EACCES: permission denied, open '/usr/share/kibana/plugins/.plugin.installing/package.json'"
No more problems.