This repository was archived by the owner on May 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
This repository was archived by the owner on May 20, 2025. It is now read-only.
Dependency conflict with Hardhat V5 #201
Copy link
Copy link
Open
Description
Describe the bug
Cannot install if using Hardhat V5 due to deps conflict with Ethers v6
Reproduction steps
- npm install @defi-wonderland/smock
Expected behavior
Should install without error.
Screenshots
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/ethers
npm error peer ethers@"^6.1.0" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-chai-matchers
npm error peer @nomicfoundation/hardhat-chai-matchers@"^2.0.0" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-toolbox
npm error dev @nomicfoundation/hardhat-toolbox@"^5.0.0" from the root project
npm error peer ethers@"^6.1.0" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-ethers
npm error peer @nomicfoundation/hardhat-ethers@"^3.0.0" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-chai-matchers
npm error peer @nomicfoundation/hardhat-chai-matchers@"^2.0.0" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-toolbox
npm error dev @nomicfoundation/hardhat-toolbox@"^5.0.0" from the root project
npm error peer @nomicfoundation/hardhat-ethers@"^3.0.4" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-ignition-ethers
npm error peer @nomicfoundation/hardhat-ignition-ethers@"^0.15.0" from @nomicfoundation/[email protected]
npm error node_modules/@nomicfoundation/hardhat-toolbox
npm error dev @nomicfoundation/hardhat-toolbox@"^5.0.0" from the root project
npm error 1 more (@nomicfoundation/hardhat-toolbox)
npm error 5 more (@nomicfoundation/hardhat-ignition-ethers, ...)
npm error
npm error Could not resolve dependency:
npm error dev @defi-wonderland/smock@"*" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/ethers
npm error peer ethers@"^5" from @defi-wonderland/[email protected]
npm error node_modules/@defi-wonderland/smock
npm error dev @defi-wonderland/smock@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
System Specs:
- OS: Version 14.6.1
- Package Version (or commit hash): 2.4.0
Metadata
Metadata
Assignees
Labels
No labels