uniberg / kbn_sankey_vis

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

Module not found: Error: Can't resolve '@kbn/data-plugin/common' #37

Open oscartunjano opened 10 months ago

oscartunjano commented 10 months ago

Hello, I have tried to build kbn_sankey_vis plugin in 7.17.12 version, following the following steps:

  1. fork and clone kibana dev
  2. cd kibana & git checkout v7.17.12 & run nvm use
  3. run yarn kbn bootstrap
  4. cd plugins
  5. git clone https://github.com/uniberg/kbn_sankey_vis.git sankey_vis
  6. cd sankey_vis & run yarn install
  7. yarn build --kibana-version 7.1712

But I get de following error

info deleting the build and target directories info running @kbn/optimizer │ info initialized, 0 bundles cached │ info starting worker [1 bundle] │ warn worker stderr Browserslist: caniuse-lite is outdated. Please run: │ warn worker stderr npx browserslist@latest --update-db │ warn worker stderr Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating │ERROR webpack compile errors │ERROR [kbnSankeyVis] build │ERROR Optimizations failure. │ 33 modules │ │ ERROR in ./public/legacy/kibana_cloned_code/request_handler.ts │ Module not found: Error: Can't resolve '@kbn/data-plugin/common' in '/Users/tunjaosc/Documents/workspace_elk/kibana/plugins/sankey_vis/public/legacy/kibana_cloned_code' │ resolve '@kbn/data-plugin/common' in '/Users/tunjaosc/Documents/workspace_elk/kibana/plugins/sankey_vis/public/legacy/kibana_cloned_code' │ Parsed request is a module │ using description file: /Users/tunjaosc/Documents/workspace_elk/kibana/plugins/sankey_vis/package.json (relative path: ./public/legacy/kibana_cloned_code) │ Field 'browser' doesn't contain a valid alias configuration │ resolve as module │ /Users/tunjaosc/Documents/workspace_elk/kibana/plugins/sankey_vis/public/legacy/kibana_cloned_code/node_modules doesn't exist or is not a directory │ /Users/tunjaosc/Documents/workspace_elk/kibana/plugins/sankey_vis/public/legacy/node_modules doesn't exist or is not a directory │ /Users/tunjaosc/Documents/workspace_elk/kibana/plugins/sankey_vis/public/node_modules doesn't exist or is not a directory │ /Users/tunjaosc/Documents/workspace_elk/kibana/plugins/node_modules doesn't exist or is not a directory │ /Users/tunjaosc/Documents/workspace_elk/node_modules doesn't exist or is not a directory

Could you help me to solve it, or loading this version in the release.

Regards

ch-bas commented 10 months ago

Hi @oscartunjano, Unfortunately, this version is not supported by the plugin. From the errors you have reported, it seems that the issue is coming from some wrong dependencies. I would highly recommend you to target a new version or another old version that the plugin is supporting. Thank you!