Lesson 6: TypeError: Cannot read properties of undefined (reading 'contracts') #2882
-
I got this error while verifying on etherscan while my other code ran successfully. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hey @abdullahtanvir11 please share the terminal where you are getting the error. Makes it easy to debug the problem |
Beta Was this translation helpful? Give feedback.
-
@abdullahtanvir11 : Follow the steps, I'm listing below,
Then deploy your script :
Let me know, If it resolves your issue! |
Beta Was this translation helpful? Give feedback.
-
Push to GitHub please. |
Beta Was this translation helpful? Give feedback.
@abdullahtanvir11 : Follow the steps, I'm listing below,
package.json
file, And remove your's.yarn hardhat clean
node_modules
folder.yarn
To install the new dependencies.yarn hardhat compile
Then deploy your script :
yarn hardhat run scripts/deploy.js --network goerli