-
Notifications
You must be signed in to change notification settings - Fork 25
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
Installation advice breaks @nomiclabs/hardhat-waffle #13
Comments
could it be that npm do not support the my template repo works and the line is : |
I'm facing the same problem. I've tried to use your line like this in my
|
Same here npm ERR! Found: @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-ethers
npm ERR! dev @nomiclabs/hardhat-ethers@"npm:hardhat-deploy-ethers@^0.3.0-beta.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @nomiclabs/hardhat-ethers@"^2.0.0" from @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-waffle
npm ERR! dev @nomiclabs/hardhat-waffle@"*" from the root project
|
Thanks for your reports. This is what is blocking me from making hardhat-deploy-ethers and extension to hardhat-ethers feel free to add your comments there |
Any progress on this issue or workaround maybe? |
Having same issue, any progress? |
Encountered the same issue as of now. No update? |
@OCWC22 do you have a repo reproducing the issue ? It is working fine for me in this simple test repo : https://github.com/bug-reproduction/test-hardhat-deploy-ethers |
Getting the same error in this repo with npm (version 8.3.0) if I delete the With yarn (version 1.22.11) it works, but I get the following warnings:
|
Can confirm, getting the same error node version: v16.13.2 |
@jannikluhn @outdoteth if you remove the package-lock what is probably happening is that the ^ make it use something else. Can you try with the specific version specified as mentioned here : #13 (comment) |
@wighawag I still get the same error
Here is my package.json
|
Re warning @jannikluhn the and I suppose the |
@outdoteth thanks for trying out, I ll see if I can reproduce and figure out what is going on |
Ok thanks - fwiw it is working on one of my other machines. I am trying to see what is different between them |
I just tried and can reproduce, seems like npm do not likes the Note that |
By the way, the best way froward out of this issue is to have this issue resolved : NomicFoundation/hardhat#1040 this would allow me to have hardhat-deploy-ethers be an extension to hardhat-ethers instead of having to install it as alias |
Hey I commented out from hardhat.config.ts:
And to my tests added:
And now I can finally use revertedWith assertions in my tests. |
This issue seems to come up intermittently for me. Currently it's breaking in our CI after working fine for a few months. I'm having no issues on my local machine. Console OutputRun npm ci
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nomiclabs/[email protected]
npm ERR! Found: @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-ethers
npm ERR! dev @nomiclabs/hardhat-ethers@"npm:hardhat-deploy-ethers@^0.3.0-beta.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @nomiclabs/hardhat-ethers@"^2.0.0" from @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-waffle
npm ERR! dev @nomiclabs/hardhat-waffle@"^2.0.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-ethers
npm ERR! peer @nomiclabs/hardhat-ethers@"^2.0.0" from @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-waffle
npm ERR! dev @nomiclabs/hardhat-waffle@"^2.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/runner/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-06-10T22_28_43_327Z-debug-0.log package.json "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"@nomiclabs/hardhat-waffle": "^2.0.2",
...
"hardhat": "^2.8.4",
"hardhat-deploy": "^0.10.6",
... |
This seems to be resolved after I set the node version to |
I ran in the same issue just now, after having no problem in the last couple of months (?)
|
@suicide this override fixed it for me, for now... thanks |
I'm not sure exactly what the issue is, but changing |
@wighawag |
hardhat-deploy-ethers@next has been released It is now an extension to hardhat-ethers so you need both But note that that new version do not support external artifact if you were using them |
I'm trying to use the @next version with 'npm install --save-dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers@next' but still having the same installation issues. How should we do now with these changes? Thanks |
You need to install both npm install --save-dev @nomiclabs/hardhat-ethers hardhat-deploy-ethers@next and include both of them in
|
Hey @wighawag Added hardhat-deploy to my repo a few weeks ago, but now facing issues with installing or updating packages Install
Update
|
hey I was running into the same thing, after i used @next it has no more issue anymore, change your hardhat-deploy-ethers version and it should be working |
The text was updated successfully, but these errors were encountered: