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

Closed
marcelomorgado opened this issue Jun 19, 2024 · 3 comments
Closed

hardhat-viem: typescript dependency conflicts #5412

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

Comments

@marcelomorgado
Copy link
Contributor

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)?

@github-project-automation github-project-automation bot moved this to Backlog in Hardhat Jun 19, 2024
@kanej kanej added status:ready This issue is ready to be worked on and removed status:triaging labels Jun 27, 2024
@kanej kanej moved this from Backlog to To-do in Hardhat 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
@kanej
Copy link
Member

kanej commented Nov 18, 2024

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 kanej closed this as completed Nov 18, 2024
@github-project-automation github-project-automation bot moved this from To-do to Done in Hardhat Nov 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:ready This issue is ready to be worked on
Projects
Archived in project
Development

No branches or pull requests

4 participants