Lesson 15: Error: cannot find artifact "NftMarketPlace" #740
Replies: 5 comments 3 replies
-
dude you p is lowercase,
when your looking for
in your deploy script |
Beta Was this translation helpful? Give feedback.
-
i'm using yarn instead of npm but in my case i run : yarn hardhat clean and after that i changed my nftMarketplace.sol to nftMarketPlace.sol and run :
you can run deploy and compile it and deploy it in same time :
|
Beta Was this translation helpful? Give feedback.
-
Look into your artifacts folder. In the contracts sub folder the name of the .json file of your contract may have changed. one time my contract name was "ContractV2.sol" and the .json file of it in the artifacts folder converted to "Contract.json" |
Beta Was this translation helpful? Give feedback.
-
If someone else is facing this problem: the issue here is in this : because: he is deploying with an uppercase "P".I had same error and I found out it was this "P" that was causing the error. |
Beta Was this translation helpful? Give feedback.
-
the p of NftMarketPlace must be lower case
to this
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was doing the Patrick Collins tutorial link and got this error when running
hh deploy
I think this might be a compiler problem cause I can't compile my contracts. The
solidity-files-cache.json
is always empty with thisSomehow hardhat isn't seeing the /contracts/ folder. I have tried deleting both the
node_modules
and thechache
but it didn't work. I have also tried everything in this thread [hardhat beginner "Nothing to compile" error](NomicFoundation/hardhat#2712) incudingnpm install glob@7.2.0
. Help will be much appreciated.NftMarketplace.sol
01-deploy-nft-marketplace
Beta Was this translation helpful? Give feedback.
All reactions