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

hardhat-viem: typescript dependency conflicts #5412

Open
marcelomorgado opened this issue Jun 19, 2024 · 2 comments
Open

hardhat-viem: typescript dependency conflicts #5412

marcelomorgado opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels
status:ready This issue is ready to be worked on

Comments

@marcelomorgado
Copy link
Contributor

The hardhat-viem@2.0.2 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)?

@kanej kanej added status:ready This issue is ready to be worked on and removed status:triaging labels Jun 27, 2024
@kanej kanej removed their assignment Jun 27, 2024
@tuler
Copy link
Contributor

tuler commented Jul 9, 2024

I have the same problem

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

@svyatogor
Copy link

For now I add this to package.json

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

@kanej kanej self-assigned this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Status: To-do
Development

No branches or pull requests

4 participants