Hello,
I used Kibana plugin generator to create a new App plugin.
When running the plugin inside kibana, i got this error in Chrome console.
The plugin is working with no issue, just want to understand how i can fix this issue.
angular.js:116 Uncaught (in promise) Error: [$injector:unpr] Unknown provider: mapConfigProvider <- mapConfig <- serviceSettings
http://errors.angularjs.org/1.6.9/$injector/unpr?p0=mapConfigProvider%20%3C-%20mapConfig%20%3C-%20serviceSettings
at eval (angular.js:116)
at eval (angular.js:4887)
at Object.getService [as get] (angular.js:5047)
at eval (angular.js:4892)
at getService (angular.js:5047)
at injectionArgs (angular.js:5072)
at Object.instantiate (angular.js:5118)
at Object.eval (angular.js:4955)
at Object.invoke (angular.js:5106)
at Object.enforcedReturnValue [as $get] (angular.js:4939)
I was getting this error related to es service, fixed by adding import 'ui/autoload/modules'; into app.js (Reference to https://www.elastic.co/guide/en/kibana/current/development-modules.html)
Uncaught (in promise) Error: [$injector:unpr] Unknown provider: esProvider <- es
http://errors.angularjs.org/1.6.9/$injector/unpr?p0=esProvider%20%3C-%20es
at eval (angular.js:116)
at eval (angular.js:4887)
at Object.getService [as get] (angular.js:5047)
at eval (angular.js:4892)
at Object.getService [as get] (angular.js:5047)
at _callee$ (C:\kibana_dev\kibana\src\legacy\core_plugins\vis_type_vega\public\shim\legacy_dependencies_plugin.ts:51)
at tryCatch (runtime.js:62)
at Generator.invoke [as _invoke] (runtime.js:288)
at Generator.prototype.<computed> [as next] (runtime.js:114)
at asyncGeneratorStep (C:\kibana_dev\kibana\src\legacy\core_plugins\vis_type_vega\public\shim\legacy_dependencies_plugin.ts:14)