Skip to content

package conflics when using txwrapper #5101

@mnaamani

Description

@mnaamani

When installing joystream/cli package globally with npm, I'm getting issues running some commands:

npm install -g @joystream/cli

eg. when using the advanced-transactions:constructUnsignedTxInitiateMs

@polkadot/util has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 11.1.1	node_modules/@joystream/cli/node_modules/@polkadot/util/cjs
	cjs 12.6.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/util/cjs
@polkadot/rpc-augment has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 10.1.4 	node_modules/@joystream/cli/node_modules/@polkadot/rpc-augment/cjs
	cjs 10.12.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/rpc-augment/cjs
@polkadot/util-crypto has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 11.1.1	node_modules/@joystream/cli/node_modules/@polkadot/util-crypto/cjs
	cjs 12.6.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/util-crypto/cjs
@polkadot/types-codec has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 10.1.4 	node_modules/@joystream/cli/node_modules/@polkadot/types-codec/cjs
	cjs 10.12.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/types-codec/cjs
@polkadot/types-create has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 10.1.4 	node_modules/@joystream/cli/node_modules/@polkadot/types-create/cjs
	cjs 10.12.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/types-create/cjs
@polkadot/types has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 10.1.4 	node_modules/@joystream/cli/node_modules/@polkadot/types/cjs
	cjs 10.12.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/types/cjs
@polkadot/keyring has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 11.1.1	node_modules/@joystream/cli/node_modules/@polkadot/keyring/cjs
	cjs 12.6.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/keyring/cjs
@polkadot/types-known has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
	cjs 10.1.4 	node_modules/@joystream/cli/node_modules/@polkadot/types-known/cjs
	cjs 10.12.2	node_modules/@joystream/cli/node_modules/@substrate/txwrapper-core/node_modules/@polkadot/types-known/cjs

command ends with error:

 TypeError: Cannot read properties of undefined (reading 'SpRuntimeUncheckedExtrinsic')

and the output .json is not written to disk.

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