hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

Update @ethersproject dependency versions

Open jamesbachini opened this issue 2 years ago • 5 comments

Was getting an error when running the command from:

You need to install these dependencies to run the sample project: npm install --save-dev "hardhat@^2.9.9" "@nomicfoundation/hardhat-toolbox@^1.0.1" "@nomicfoundation/hardhat-network-helpers@^1.0.0" "@nomicfoundation/hardhat-chai-matchers@^1.0.0" "@nomiclabs/hardhat-ethers@^2.0.0" "@nomiclabs/hardhat-etherscan@^3.0.0" "chai@^4.2.0" "ethers@^5.4.7" "hardhat-gas-reporter@^1.0.8" "solidity-coverage@^0.7.21" "@typechain/hardhat@^6.1.2" "typechain@^8.1.0" "@typechain/ethers-v5@^10.1.0" "@ethersproject/abi@^5.4.7" "@ethersproject/providers@^5.4.7"

npm ERR! code ETARGET npm ERR! notarget No matching version found for @ethersproject/[email protected]. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

Screenshot 2022-08-14 100441


Have updated @ethersproject/abi and @ethersproject/providers to the latest versions.

jamesbachini avatar Aug 14 '22 08:08 jamesbachini

⚠️ No Changeset found

Latest commit: d84c2b01788e61bd5b3c5a3d2bb60fd3ee74274b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Aug 14 '22 08:08 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hardhat ✅ Ready (Inspect) Visit Preview Aug 14, 2022 at 8:06AM (UTC)
hardhat-storybook ✅ Ready (Inspect) Visit Preview Aug 14, 2022 at 8:06AM (UTC)

vercel[bot] avatar Aug 14 '22 08:08 vercel[bot]

This issue is also being tracked on Linear.

We use Linear to manage our development process, but we keep the conversations on Github.

LINEAR-ID: 2940c7e8-d840-4ff0-a40f-f870f370178a

github-actions[bot] avatar Aug 14 '22 08:08 github-actions[bot]

You were getting a really odd error. Can you describe the situation that lead to it? Just installing? Can you describe your system?

alcuadrado avatar Aug 16 '22 18:08 alcuadrado

You were getting a really odd error. Can you describe the situation that lead to it? Just installing? Can you describe your system?

It's trying to install a dependency with a version number that doesn't exist. See link below for details. Just needed to update the text it prints out to the latest versions for both @ethersproject dependencies.

https://www.npmjs.com/package/@ethersproject/abi?activeTab=versions

jamesbachini avatar Aug 19 '22 17:08 jamesbachini

This seems to be the same problem mentioned in https://github.com/NomicFoundation/hardhat/pull/2943, but I couldn't reproduce it (maybe the dependencies were indeed wrong, but those versions have been published since then).

Anyway, as I said there, please open an issue if you are still running into this.

fvictorio avatar Sep 28 '22 11:09 fvictorio