smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
12.25k stars 2.94k forks source link

conflict peer dependencies: nomicfoundation & hardhat-deploy-ethers #4543

Open SashaFlores opened 1 year ago

SashaFlores commented 1 year ago

Hi @PatrickAlphaC I'm facing a blockage so any help will be appreciated:

@nomiclabs/hardhat-ethers is an essential peer dependency to hardhat-deploy-ethers but that will prevent me from installing @nomicfoundation/chai-matchers due to a conflict in dependencies, I looked up a resolution here https://github.com/wighawag/hardhat-deploy-ethers/issues/27 but it looks like it's not resolved yet!!

any workaround or solution. I need both hardhat-deploy-ethers & chai-matchers for testing.

I really appreciate any help you can provide.

CodeWarriorr commented 1 year ago

I've replied to your question on stackexchange https://ethereum.stackexchange.com/questions/143246/conflict-peer-dependencies-nomicfoundation-hardhat-deploy-ethers/143252

TLDR; Some solution would be to use yarn v3, you look at solution in my hardhat bootstrap helper tool here: https://github.com/CodeWarriorr/hardhat-create-app/blob/master/bin/hardhat-create-app.js