Make Plugin Backward Compataible

Hi there,

So I created a Kibana plugin for version 7.0
However, it turns out I will be using version 6.5.

What's the easiest way to make the plugin compatible with that version?
I'm also using version 7 of the Elasticsearch JS client.

Regards,
Dilshan

What issues are you seeing when you try to load your plugin in 6.5?

I get the following error:

This error doesn't occur when I try to install it in version 7.0

Coincidentally, the error is happening with code (written in typescript) I've copied from the EUI Github repository.

When I try installing it again, it says Plugin alerts already exists, please remove before installing a new version.