Issue with setting up Hardhat on Mac: #1856
paulgs9988
started this conversation in
General
Replies: 2 comments
-
UPDATE So I have narrowed it down that the issue might have something to do with not having the package: @nomicfoundation/hardhat-waffle which I'm having difficulty installing and I get multiple errors when I try. Perhaps someone may have some advice regarding this? I get the following when I try to install:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey! Make sure your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I followed the setup for hardhat last night and continually ran into the following problem (please note that I manually changed my name to "user" in the file paths below so you can ignore that as being any issue):
This was after doing some trouble shooting, and I have already tried deleting my artifacts file and recompiling. I was initially getting an error that @nomicfoundation/hardhat-chai-matchers or something similar was not installed so I manually installed it with yarn and now I get the above error.
Anyway, I am now starting over from scratch to see if maybe I can get things setup properly and am documenting some differences in my setup from the tutorials:
First, when I run "yarn hardhat", I have no option to "Create a basic sample project", so I am instead choosing "Create a Javascript project"
When I complete the Javascript setup, my package.json only contains the following:
So I remember on my initial run through, I manually typed out the "devDependencies" configuration to match what is in the tutorial. I am guessing that this may be one source of the issue; however, I do have a node_modules directory that seems to have all of these modules present.
Instead of "Greeter.sol" in my contracts directory, I have a project called Lock.sol (I can include the code for this if it'd be helpful). The solidity version for Lock.sol is ^0.8.9
My node_modules has a lot in it, but it isn't exactly like the one in the tutorial. For example, mine does not have @ensdomains, @ethereum-waffle (I realize this second one is probably an issue and am wondering if I should manually install some dependency for that?)
I'm not sure if there is another way I should proceed from here. I can continue to set up and document any other discrepancies in how I set up from the code directly, but the two above are the main ones I remember in my first failed setup.
Beta Was this translation helpful? Give feedback.
All reactions