-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.4.0] $rootScope.$listen is not a function error while trying to get VisTypes list #23278
Comments
This is also happening with import { VisProvider } from 'ui/vis/vis';
export function decorateVis(Private) {
const Vis = Private(VisProvider);
// ... |
Guys, it seems that this behavior is related to In this file (my plugin module definition), if I change the I'm changing the code for the second option for now, but shouldn't the custom module definition work as well (since I define |
cc @spalger is that some side effect we are aware of something that could break that? I would also consider, that |
Looking again, since you decorate some services that are inside the Also some heads up: You are very deeply integrating into a lot of internal Kibana services.. especially a lot that we are currently refactoring. I think every other minor release in 6.x might still cause you a lot of refactoring in your plugin unfortunately. Some PRs that might be relevant:
|
Hey @timroes, thanks for your reply! I'll use the Also thanks for your advices on Kibana releases. In fact, I refactored a lot of things for |
I'll close this, since it seems we found a solution for that. Please feel free to leave a comment if it needs to be reopened. |
Hi!
Some months ago, I developed a Kibana plugin targeting
6.1.1
version. Now I'm trying to update the plugin files in order to make it work on Kibana6.4.0
.There's this part of code where I need to get the
VisTypes
list:I get this error trying to run it in Kibana
6.4.0
:The
Private
injector comes from this file.Can someone help me with this? I know there was a removal of services in the last version of Kibana, but it seems that it's not the case (
VisTypesRegistryProvider
still needsPrivate
injector).The text was updated successfully, but these errors were encountered: