'Hardhat is not compiling
I have been trying to test out hardhat. I follow the guide on https://hardhat.org/getting-started/#quick-start. I use the sample project as mentioned. When I try to compile with npx hardhat compile nothing ever gets compiled (Nothing to compile). Also artifact folder never gets created. I tried it also with different projects, inside power shell and also visual studio code and the code is never compiling. Is there something I could do to fix it?
Solution 1:[1]
npm install [email protected] Try this it is Working for me
Solution 2:[2]
Just downgrade the version of hardhat to 2.9.3 and it should work fine.
Solution 3:[3]
I am also experiencing the same hardhat error (nothing to compile). I believe it has to do with hardhat API; hopefully, it'll be fixed soon.
Solution 4:[4]
For anyone having the same problem, I found a fix that works for now npm install [email protected]. Hopefully future releases fix this problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | CryptoBaba1 |
| Solution 2 | sachin augustine |
| Solution 3 | Makerzy |
| Solution 4 | Jure Jurcic |
