Hi @nreese
I've been trying to migrate your plugin to Kibana v6.1.2
Now the problem is, when trying to import Build Chart Data from 'ui/vislib_vis_type/build_chart_data'
The file doesn't exist in Kibana v6.1.2 at the mentioned path.
I even tried to explicitly copy the required file at the same path, but it gives an error :
TypeError: Expected private module "undefined" to be a function
at identify (commons.bundle.js?v=16363:50)
at Private (commons.bundle.js?v=16363:50)
at Object.<anonymous> (kibana.bundle.js?v=16363:117)
at Object.invoke (commons.bundle.js?v=16363:29)
at extend.instance (commons.bundle.js?v=16363:29)
at nodeLinkFn (commons.bundle.js?v=16363:29)
at compositeLinkFn (commons.bundle.js?v=16363:29)
at commons.bundle.js?v=16363:29
at Object.link (kibana.bundle.js?v=16363:67)
at commons.bundle.js?v=16363:29 "<vis-editor-vis-options vis="vis" vis-data="visData" ui-state="uiState" visualize-editor="visualizeEditor" editor="tab.editor">"
Respective code :
import { VislibVisTypeBuildChartDataProvider } from 'ui/vislib_vis_type/build_chart_data'; const buildChartData = Private(VislibVisTypeBuildChartDataProvider); // This throws the following error
And it originates here in the bundled file :
var buildChartData = Private(_build_chart_data.VislibVisBuildChartData)
Is it possible that maybe this file exists somewhere else Kibana 6 and I can load it from there.
Or some changes that I can make in the same file to make it work?
Please help out.
Thank you
Hi @nreese
I've been trying to migrate your plugin to Kibana v6.1.2
Now the problem is, when trying to import Build Chart Data from 'ui/vislib_vis_type/build_chart_data'
The file doesn't exist in Kibana v6.1.2 at the mentioned path.
I even tried to explicitly copy the required file at the same path, but it gives an error :
Respective code :
import { VislibVisTypeBuildChartDataProvider } from 'ui/vislib_vis_type/build_chart_data'; const buildChartData = Private(VislibVisTypeBuildChartDataProvider); // This throws the following errorAnd it originates here in the bundled file :
var buildChartData = Private(_build_chart_data.VislibVisBuildChartData)Is it possible that maybe this file exists somewhere else Kibana 6 and I can load it from there.
Or some changes that I can make in the same file to make it work?
Please help out.
Thank you