Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

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

Open
enp opened this issue Dec 17, 2020 · 2 comments
Open

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

enp opened this issue Dec 17, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@enp
Copy link

enp commented Dec 17, 2020

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 enp added the bug Something isn't working label Dec 17, 2020
@enp
Copy link
Author

enp commented Dec 17, 2020

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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants