Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency issue with hardhat-deploy-ethers #51

Open
samlaf opened this issue Jul 5, 2022 · 6 comments
Open

dependency issue with hardhat-deploy-ethers #51

samlaf opened this issue Jul 5, 2022 · 6 comments

Comments

@samlaf
Copy link

samlaf commented Jul 5, 2022

See this issue that I opened in hardhat-deploy-ethers: wighawag/hardhat-deploy-ethers#26

the creator of hardhat-deploy-ethers suggests that hardhat-tenderly does not hardcode its version of hardhat-ethers, to prevent such issues (hardhat-deploy-ethers is a fork of hardhat-ethers).

@iantanwx
Copy link

iantanwx commented Jul 10, 2022

we are also blocked on this. It looks like moving @nomiclabs/hardhat-ethers to peerDependencies is sufficient. I will fork and test this later. As far as I can tell, hardhat-tenderly does not rely on any specific APIs of hardhat-ethers that would make it necessary to pin it in dependencies, since it is actually imported to wrap certain deployment functions to do automatic verification.

@iantanwx
Copy link

@samlaf adding the following to package.json works for yarn:

  "resolutions": {
    "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13"
  }

See the yarn docs on resolutions for more. For npm, the equivalent is overrides.

@samlaf
Copy link
Author

samlaf commented Jul 30, 2022

Oh wow ok I’ll give it a try when I get back to this project. Thanks :)

@fvictorio
Copy link
Contributor

It looks like moving @nomiclabs/hardhat-ethers to peerDependencies is sufficient

Agree. Also worth mentioning that this is one of our recommended practices when building Hardhat plugins.

@sebastiantf
Copy link

tsc complaining several Duplicate identifier errors with @nomiclabs/hardhat-ethers

samlaf adding the following to package.json works for yarn:

  "resolutions": {
    "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13"
  }

See the yarn docs on resolutions for more. For npm, the equivalent is overrides.

This resolved it for now

@matthewlilley
Copy link

@samlaf adding the following to package.json works for yarn:

  "resolutions": {
    "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13"
  }

See the yarn docs on resolutions for more. For npm, the equivalent is overrides.

For those using PNPM

  "pnpm": {
    "overrides": {
      "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13"
    }
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants