opendistro-for-elasticsearch / index-management-kibana-plugin

🗃 Open Distro Index Management Kibana UI plugin
https://opendistro.github.io/
Apache License 2.0
42 stars 23 forks source link

[BUG] Can't build plugin from source #148

Open enp opened 3 years ago

enp commented 3 years ago

Hi,

I tried to build plugin from source:


git clone --depth 1 --branch v7.10.0 https://github.com/elastic/kibana.git
cd kibana

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
. $HOME/.nvm/nvm.sh || true
nvm install $(cat .nvmrc)
nvm use
npm install -g yarn

cd plugins

git clone --depth 1 --branch v1.12.0.0 https://github.com/opendistro-for-elasticsearch/index-management-kibana-plugin.git
cd index-management-kibana-plugin
yarn kbn bootstrap
yarn build

Result of last command:

ERROR [single_version_dependencies] Multiple version ranges for the same dependency
      were found declared across different package.json files. Please consolidate
      those to match across all package.json files. Different versions for the
      same dependency is not supported.

      If you have questions about this please reach out to the operations team.

      The conflicting dependencies are:

        cypress
          ^5.0.0 => x-pack
          4.3.0 => opendistro_index_management_kibana
        ts-loader
          ^7.0.5 => x-pack
          ^6.2.1 => opendistro_index_management_kibana

Is this a bug or I'm doing something wrong?

enp commented 3 years ago

Looks like removing cypress and ts-loader both from devDependencies section of package.json helps to build zip which works with index-management elasticsearch plugin

dbbaughe commented 3 years ago

Hmm.. unfortunately we don't build/develop with Kibana source that includes x-pack which seems like might have been the issue for you. If cypress and ts-loader are included in the Kibana dev dependencies then we can look into removing them here. If they are only added because of x-pack then we might need to just call this out in README or see if there's a workaround.