[kibana 8.12.1] Plugin generator generates a plugin shows server error

Hi,
I use Kibana 8.12.1 and make kiban plugin using " [kbn-plugin-generator ] . [kibana/packages/kbn-plugin-generator at main · elastic/kibana · GitHub ]. Unfortunately, after generating the plug-in and starting with "yarn start", I see this error:
[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 127.0.0.1:9200

Has anyone encountered a similar error? How do you fix it?

Thanks,
Tingting

Can you confirm you have a running Elasticsearch cluster? You can spin up one with the yarn es command? More details about running Elasticsearch in development here:

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