Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package conflics when using txwrapper #5101

Closed
mnaamani opened this issue Mar 13, 2024 · 1 comment · Fixed by #5102
Closed

package conflics when using txwrapper #5101

mnaamani opened this issue Mar 13, 2024 · 1 comment · Fixed by #5102

Comments

@mnaamani
Copy link
Member

mnaamani commented Mar 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant