hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

`hardhat-viem`: `typescript` dependency conflicts

Open marcelomorgado opened this issue 1 year ago • 2 comments

The [email protected] package has its typescript version set to ~5.0.0 and it's conflicting with the project I'm working on which uses version ^5.4.5. Worth noting that ~5.0.0 only allows range from 5.0.0 until 5.1.0.

Is there a reason for that? Can you set it to ^5.0.0 instead (which will support up to <6.0.0 versions)?

marcelomorgado avatar Jun 19 '24 15:06 marcelomorgado

I have the same problem

packages/contracts
└─┬ @nomicfoundation/hardhat-viem 2.0.3
  └── ✕ unmet peer typescript@~5.0.0: found 5.5.3

tuler avatar Jul 09 '24 04:07 tuler

For now I add this to package.json

"overrides": {
    "@nomicfoundation/hardhat-toolbox-viem": {
      "typescript": "$typescript"
    }
  },

svyatogor avatar Sep 13 '24 08:09 svyatogor

Typescript has been removed as a peer dependency for hardhat-viem: https://github.com/NomicFoundation/hardhat/releases/tag/%40nomicfoundation%2Fhardhat-viem%402.0.6

kanej avatar Nov 18 '24 14:11 kanej