Since, the version of your @nomiclabs/hardhat-ethers
package is older and referencing the ethers.js v5
. So, instead of ethers.js v6
, you've to install ethers.js v5
.
For doing that, you can just execute this commandeither of these commands, depending on whether you're using yarn
or npm
:
Using yarn:
yarn add [email protected]
Using npm:
npm install [email protected]