"Unknown provider" error in Kibana

I try to write a Kibana app and its working well with the current master version of Kibana (Version 5).
But the plugin is not running within Kibana 4.4 (and also not in 4.2/4.3, 4.5 snapshot is also failing). The issue i'am facing is this one: https://github.com/elastic/kibana/issues/5349.

The plugin is here https://github.com/salyh/es-lint/blob/5349/elastic-preflight-2.2.0-0-onlyworkingwithkibana5.zip?raw=true

Would be great to get help to get this running on Kibana 4.2+

Error: Uncaught Error: [$injector:unpr] Unknown provider: kbnIndexProvider <- kbnIndex <- config
http://errors.angularjs.org/1.4.7/$injector/unpr?p0=kbnIndexProvider%20%3C-%20kbnIndex%20%3C-%20config (http://localhost:5601/bundles/commons.bundle.js?v=9863:31533)
    at window.onerror (http://localhost:5601/bundles/commons.bundle.js?v=9863:65461:25)
1 Like