Plug-in version compatibility issues

The version of the development plug-in is 8.4.3, how can the plug-in be compatible after the Grafana version is upgraded? Or does it need to be redeveloped?
The problem is that the developed plugin will report an error in the environment of the new version. The error reads "plugin failed
TypeError: (0 , o.C)(…). instantiate is not a function”

Hi @fightingmie

It is a bit more involved to keep support for older and new versions of Grafana at the same time, specially because older versions of Grafana like 8.x are not actively maintained or supported.

What you can do if you have absolute necessity of supporting older versions is do some feature detection. This consist on probing some APIs and objects that might had been removed in newer versions of Grafana and exist in older or vice-versa e.g.:

import * as gData from "@grafana/data"

if (gData.specificAPIFor8xx) {
 // do old code
} else{
// use new API
}

Thank you for your help :saluting_face:
I will try to create a new plugin version to fix this probleam