Ok, I’ll try to be more specific, to not sound like I want my work be done by someone else.
If I use “@types/grafana”: “github:CorpGlory/types-grafana.git”, it won’t build because of missing modules
⠼ Bundling plugin in dev mode [tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(15,25)
TS2307: Cannot find module 'grafana/app/features/panel/panellinks/link_srv'.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(30,3)
TS2564: Property ‘series’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(32,3)
TS2564: Property ‘fontSizes’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(33,3)
TS2564: Property ‘unitFormats’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(34,3)
TS2564: Property ‘invalidGaugeRange’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(382,28)
TS2339: Property ‘$location’ does not exist on type ‘AlertStatCtrl’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(651,9)
TS2322: Type ‘null’ is not assignable to type ‘{ target: string; href: string; title: string; }’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(699,26)
TS2339: Property ‘place_tt’ does not exist on type ‘JQLite’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks/link_srv.ts(2,25)
TS2307: Cannot find module ‘app/features/dashboard/services/TimeSrv’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks/link_srv.ts(3,42)
TS2307: Cannot find module ‘app/features/templating/template_srv’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks/link_srv.ts(4,24)
TS2307: Cannot find module ‘app/core/core_module’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks/link_srv.ts(5,47)
TS2307: Cannot find module ‘app/core/utils/url’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks/link_srv.ts(17,32)
TS7006: Parameter ‘variable’ implicitly has an ‘any’ type.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks/link_srv.ts(134,62)
If I use hardcoded absolute paths to my 6.3.4 grafana source tree, it just returns some crazy stuff I don’t know how to handle:
⠇ Bundling plugin in dev mode Module not found: Error: Can't resolve 'app/core/core_module' in '/opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks'
Module not found: Error: Can’t resolve ‘app/core/utils/ticks’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/core’
Module not found: Error: Can’t resolve ‘app/core/utils/url’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks’
Module not found: Error: Can’t resolve ‘app/features/alerting/AlertTabCtrl’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/plugins’
Module not found: Error: Can’t resolve ‘app/features/panel/metrics_panel_ctrl’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/plugins’
Module not found: Error: Can’t resolve ‘app/features/panel/panel_ctrl’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/plugins’
Module not found: Error: Can’t resolve ‘app/features/panel/query_ctrl’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/plugins’
Module not found: Error: Can’t resolve ‘app/features/templating/template_srv’ in ‘/opt/go/src/github.com/grafana/grafana/public/app/features/panel/panellinks’
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(30,3)
TS2564: Property ‘series’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(32,3)
TS2564: Property ‘fontSizes’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(33,3)
TS2564: Property ‘unitFormats’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(34,3)
TS2564: Property ‘invalidGaugeRange’ has no initializer and is not definitely assigned in the constructor.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(111,10)
TS2339: Property ‘addEditorTab’ does not exist on type ‘AlertStatCtrl’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(112,10)
TS2339: Property ‘addEditorTab’ does not exist on type ‘AlertStatCtrl’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(118,10)
TS2339: Property ‘refresh’ does not exist on type ‘AlertStatCtrl’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(141,10)
TS2339: Property ‘render’ does not exist on type ‘AlertStatCtrl’.
[tsl] ERROR in /opt/go/src/github.com/grafana/grafana/data/plugins/divanikus-alertstat-panel/src/module.ts(185,32)
TS2532: Object is possibly ‘undefined’.