I am trying to extend the WorldMap plugin with a new feature. I want to do a template variable update when a click event occurs. After that I want to do the updating via getLocationSrv().update(…) function, but as soon as I “import {getLocationSrv} from ‘@grafana/runtime’;” the plugin cannot be loaded. I can build the plugin with ‘yarn dev’ successfully.
Grafana (7.3) versions:
“@grafana/toolkit”: “^7.3.1”,
“@grafana/runtime”: “^7.0.0”,
“@types/grafana”: “https://git@github.com/CorpGlory/types-grafana.git”
Regards
JK