Thanks for the further development of this plugin!
I wanted to build a release for Kibana 7.17.9, but ran into different errors.
When I follow the the build informations in the README, I get the following error:
yarn install
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning mocha > mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning nyc > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 9.85s.
:~/sankey_vis# yarn build --kibana-version 7.17.9
yarn run v1.22.19
$ yarn plugin-helpers build --kibana-version 7.17.9
$ node ../../scripts/plugin_helpers build --kibana-version 7.17.9
node:internal/modules/cjs/loader:988
throw err;
^
Error: Cannot find module '/scripts/plugin_helpers'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Function.Module._load (node:internal/modules/cjs/loader:833:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
:~/sankey_vis#
I saw the script directory in the kibana github repository, so I cloned Kibana, moved sankey_vi into kibana/plugins/ and tried it again with the following error.
:~/github/kibana/plugins/sankey_vis# yarn build --kibana-version 7.17.9
yarn run v1.22.19
$ yarn plugin-helpers build --kibana-version 7.17.9
$ node ../../scripts/plugin_helpers build --kibana-version 7.17.9
node:internal/modules/cjs/loader:988
throw err;
^
Error: Cannot find module 'require-in-the-middle'
Require stack:
- /root/github/kibana/src/setup_node_env/harden/child_process.js
- /root/github/kibana/src/setup_node_env/harden/index.js
- /root/github/kibana/src/setup_node_env/no_transpilation_dist.js
- /root/github/kibana/src/setup_node_env/no_transpilation.js
- /root/github/kibana/scripts/plugin_helpers.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Function.Module._load (node:internal/modules/cjs/loader:833:27)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/root/github/kibana/src/setup_node_env/harden/child_process.js:9:12)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/root/github/kibana/src/setup_node_env/harden/child_process.js',
'/root/github/kibana/src/setup_node_env/harden/index.js',
'/root/github/kibana/src/setup_node_env/no_transpilation_dist.js',
'/root/github/kibana/src/setup_node_env/no_transpilation.js',
'/root/github/kibana/scripts/plugin_helpers.js'
]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Could you please provide more informations to successfully build a release?
Hi @Foxeronie , thanks for your interest for the plugin!
According to the errors you've reported, most probably you have not followed the instructions of how to run kibana in dev mode.
Regards!
Hello!
Thanks for the further development of this plugin!
I wanted to build a release for Kibana 7.17.9, but ran into different errors.
When I follow the the build informations in the README, I get the following error:
I saw the script directory in the kibana github repository, so I cloned Kibana, moved sankey_vi into kibana/plugins/ and tried it again with the following error.
Could you please provide more informations to successfully build a release?
Thanks in advance.
Best regards, Patrick