I am still learning TypeScript and I have some code that is working, but it returns a lot of messages about multiple versions of modules and conflicting packages. What is the best way to fix these messages? Also, based on my readings yarn supposedly automatically dedupes when you use yarn add
, but that is not my experience based on these messages. I know the package.json lists the dependencies and version numbers, but I don't know enough to know how to modify that file to fix this problem. Any and all suggestions are appreciated.
@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 9.1.1 node_modules/@polkadot/api/node_modules/@polkadot/util/cjs
cjs 9.1.1 node_modules/@polkadot/types/node_modules/@polkadot/util/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 9.1.1 node_modules/@polkadot/api/node_modules/@polkadot/util-crypto/cjs
cjs 9.1.1 node_modules/@polkadot/types/node_modules/@polkadot/util-crypto/cjs
@polkadot/wasm-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 6.0.1 node_modules/@polkadot/api/node_modules/@polkadot/wasm-crypto/cjs
cjs 6.0.1 node_modules/@polkadot/types/node_modules/@polkadot/wasm-crypto/cjs
@polkadot/wasm-crypto-wasm 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 6.0.1 node_modules/@polkadot/api/node_modules/@polkadot/wasm-crypto-wasm/cjs
cjs 6.0.1 node_modules/@polkadot/types/node_modules/@polkadot/wasm-crypto-wasm/cjs
@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 9.1.1 node_modules/@polkadot/api/node_modules/@polkadot/util/cjs
cjs 9.1.1 node_modules/@polkadot/types/node_modules/@polkadot/util/cjs
cjs 9.1.1 node_modules/@polkadot/types-known/node_modules/@polkadot/util/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 8.3.1 node_modules/@polkadot/types/node_modules/@polkadot/types-create/cjs
cjs 8.3.1 node_modules/@polkadot/types-known/node_modules/@polkadot/types-create/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 8.3.1 node_modules/@polkadot/types/node_modules/@polkadot/types-codec/cjs
cjs 8.3.1 node_modules/@polkadot/types-known/node_modules/@polkadot/types-codec/cjs
@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 9.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/api/node_modules/@polkadot/util/cjs
cjs 9.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/node_modules/@polkadot/util/cjs
cjs 9.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types-known/node_modules/@polkadot/util/cjs
cjs 8.7.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/util
@polkadot/rpc-core 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 8.3.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/api/node_modules/@polkadot/rpc-core/cjs
cjs 7.15.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/rpc-core
@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 8.3.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/cjs
cjs 7.15.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/rpc-core/node_modules/@polkadot/types
@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 8.3.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/node_modules/@polkadot/types-create/cjs
cjs 8.3.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types-known/node_modules/@polkadot/types-create/cjs
cjs 7.15.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types-create
@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 8.3.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/node_modules/@polkadot/types-codec/cjs
cjs 8.3.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types-known/node_modules/@polkadot/types-codec/cjs
cjs 7.15.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types-codec
@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 9.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/api/node_modules/@polkadot/util-crypto/cjs
cjs 9.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/node_modules/@polkadot/util-crypto/cjs
cjs 8.7.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/util-crypto
@polkadot/wasm-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 6.0.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/api/node_modules/@polkadot/wasm-crypto/cjs
cjs 6.0.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/node_modules/@polkadot/wasm-crypto/cjs
cjs 5.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/wasm-crypto
@polkadot/wasm-crypto-wasm 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 6.0.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/api/node_modules/@polkadot/wasm-crypto-wasm/cjs
cjs 6.0.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/types/node_modules/@polkadot/wasm-crypto-wasm/cjs
cjs 5.1.1 /Users/rogerbos/subquery/pulse/node_modules/@polkadot/wasm-crypto-wasm
karura
yarn dedupe
ornpm dedupe
(depending on your package manager)yarn dedupe
actually work for other people? when I try it I get an error message that it isn't necessary (and it doesn't do anything):rogerbos@rogers-mbp pulse % yarn dedupe yarn dedupe v1.22.18 warning ../../package.json: No license field error The dedupe command isn't necessary. `yarn install` will already dedupe. info Visit https://yarnpkg.com/en/docs/cli/dedupe for documentation about this command.