Struggling with regionmapsConfig provider


#1

Hello team, I'm struggling to solve the next error:

Unknown provider: regionmapsConfigProvider <- regionmapsConfig

I've adapted few things from my plugin in order to work with 6.3.0 but still seeing this error.

Thanks in advance, I'm almost done but regionmaps...

Regards,
Jesús


Wazuh, Inc


(Tim Roes) #2

Hi,

unfortunately that error message is not much saying, but a common mistake. We've changed the way you need to copy over injected UI vars in your plugin. Add to your plugin description (i.e. inside the object you pass to new kibana.Plugin():

init(server) {
  server.injectUiAppVars('youAppId', async () => (
    await server.getInjectedUiAppVars('kibana')
  ));
}

Where yourAppId must match the id you gave your application in the app part of that file. ALso if your plugin was running earlier already, you might have the old injectVars key in your app definition, which you can remove.

Also see kibana_sample_plugin for an example of how to migrate the index.js.

Cheers,
Tim


Enabling the timeRangeSelector inside a React visualization (plugin)
#3

Ok thanks!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.