metaplex-foundation / umi-hotline

2 stars 0 forks source link

Dependency version conflict #2

Closed sohrab- closed 1 year ago

sohrab- commented 1 year ago

Umi version

0.7.0

Code

This is more of a heads-up on the incompatibility of the current latest versions.

The instructions ask to:

npm install \
  @metaplex-foundation/umi \
  @metaplex-foundation/umi-bundle-defaults \
  @solana/web3.js \
  @metaplex-foundation/mpl-candy-machine@alpha

Error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @metaplex-foundation/mpl-candy-machine@6.0.0-alpha.8
npm ERR! Found: @metaplex-foundation/umi@0.7.0
npm ERR! node_modules/@metaplex-foundation/umi
npm ERR!   @metaplex-foundation/umi@"^0.7.0" from the root project
npm ERR!   peer @metaplex-foundation/umi@"^0.7.0" from @metaplex-foundation/umi-bundle-defaults@0.7.0
npm ERR!   node_modules/@metaplex-foundation/umi-bundle-defaults
npm ERR!     @metaplex-foundation/umi-bundle-defaults@"^0.7.0" from the root project
npm ERR!   9 more (@metaplex-foundation/umi-downloader-http, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @metaplex-foundation/umi@"^0.6.0" from @metaplex-foundation/mpl-candy-machine@6.0.0-alpha.8
npm ERR! node_modules/@metaplex-foundation/mpl-candy-machine
npm ERR!   @metaplex-foundation/mpl-candy-machine@"^6.0.0-alpha.8" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @metaplex-foundation/umi@0.6.0
npm ERR! node_modules/@metaplex-foundation/umi
npm ERR!   peer @metaplex-foundation/umi@"^0.6.0" from @metaplex-foundation/mpl-candy-machine@6.0.0-alpha.8
npm ERR!   node_modules/@metaplex-foundation/mpl-candy-machine
npm ERR!     @metaplex-foundation/mpl-candy-machine@"^6.0.0-alpha.8" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
lorisleiva commented 1 year ago

Good shout! I'll aim to update the peer dependency version on all packages this week. 🙏

lorisleiva commented 1 year ago

They have been updated. Thanks for raising this. 🍺