Skip to content

Conflicting @polkadot/* dependency versions #107

Description

@mlaeng

Conflicting @polkadot/* dependency versions

When running @acurast/cli, the following warnings are thrown due to multiple versions of @polkadot/util, @polkadot/keyring, and @polkadot/util-crypto being installed:

@polkadot/util has multiple versions, ensure that there is only one installed.
The following conflicting packages were found:
  esm 13.5.9 node_modules/@acurast/cli/node_modules/@polkadot/keyring/node_modules/@polkadot/util/
  esm 14.0.1 node_modules/@acurast/cli/node_modules/@polkadot/util/

@polkadot/keyring has multiple versions, ensure that there is only one installed.
The following conflicting packages were found:
  esm 13.5.9 node_modules/@acurast/cli/node_modules/@polkadot/keyring/
  esm 14.0.1 node_modules/@acurast/cli/node_modules/@polkadot/api/node_modules/@polkadot/keyring/

@polkadot/util-crypto has multiple versions, ensure that there is only one installed.
The following conflicting packages were found:
  esm 13.5.9 node_modules/@acurast/cli/node_modules/@polkadot/keyring/node_modules/@polkadot/util-crypto/
  esm 14.0.1 node_modules/@acurast/cli/node_modules/@polkadot/util-crypto/

Cause

It looks like @polkadot/keyring is pinned to a v13.x release that pulls in @polkadot/util@13.5.9 and @polkadot/util-crypto@13.5.9, while other dependencies (like @polkadot/api) have moved to v14.x. The Polkadot.js packages enforce a single-version requirement at runtime, so this conflict results in warnings (and potentially errors).

Expected behavior

All @polkadot/* dependencies within @acurast/cli should resolve to the same major version to avoid these runtime conflicts.

Environment

  • OS: macOS
  • Package manager: npm

Thanks for the great tool — happy to help test if you push a fix!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions