uniberg / kbn_sankey_vis

Sankey diagram for Kibana visualize.
Apache License 2.0
28 stars 11 forks source link

after installing this plugin, kibana web page does not show correctly #33

Open binarywang opened 11 months ago

binarywang commented 11 months ago

The web shows:

Elastic did not load properly. Check the server output for more information.

and the console says:

Refused to execute script from 'http://127.0.0.1:5601/zzh/9007199254740991/bundles/plugin/kbnSankeyVis/kibana/kbnSankeyVis.plugin.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
ch-bas commented 11 months ago

Hi @binarywang , Would you mind sharing more details about your problem;

binarywang commented 11 months ago

dev mode , using kibana's almost latest source code

binarywang commented 11 months ago

I also tried to install it in distributuion mode (kibana 8.8.0), but could not find the sankey option in visualization

binarywang commented 11 months ago

does this distribution seem right?


kbnSankeyVis
├── kibana.json
└── target
    └── public
        ├── kbnSankeyVis.chunk.1.js
        ├── kbnSankeyVis.chunk.1.js.br
        ├── kbnSankeyVis.chunk.2.js
        ├── kbnSankeyVis.chunk.2.js.br
        ├── kbnSankeyVis.chunk.3.js
        ├── kbnSankeyVis.chunk.3.js.br
        ├── kbnSankeyVis.chunk.4.js
        ├── kbnSankeyVis.chunk.4.js.br
        ├── kbnSankeyVis.chunk.5.js
        ├── kbnSankeyVis.chunk.5.js.br
        ├── kbnSankeyVis.chunk.6.js
        ├── kbnSankeyVis.chunk.6.js.br
        ├── kbnSankeyVis.plugin.js
        └── kbnSankeyVis.plugin.js.br
ch-bas commented 11 months ago

Please note that the plugin is not compatible with all Kibana's release. For example, the release kbnSankeyVis-8.8.2.zip is only compatible with version 8.8.2 .

Once successfully instaled, the plugin should be available under Aggregation Based in Visualize Library section. Thanks!

binarywang commented 11 months ago

Please note that the plugin is not compatible with all Kibana's release. For example, the release kbnSankeyVis-8.8.2.zip is only compatible with version 8.8.2 .

Once successfully instaled, the plugin should be available under Aggregation Based in Visualize Library section. Thanks!

so you mean it supports 8.8.2, but not 8.8.0?

binarywang commented 11 months ago

I build it myself through yarn build --kibana-version 8.8.0

ch-bas commented 11 months ago

Please note that the plugin is not compatible with all Kibana's release. For example, the release kbnSankeyVis-8.8.2.zip is only compatible with version 8.8.2 . Once successfully instaled, the plugin should be available under Aggregation Based in Visualize Library section. Thanks!

so you mean it supports 8.8.2, but not 8.8.0?

I just gave the last version as an example. Indeed, the plugin should work with both 8.8.0 and 8.8.2 .

I will try to reproduce the problem you have reported and get back to you soon! Thank you for reporteling this issue!