Lesson 7: TypeError: Cannot read properties of undefined (reading 'length') #6237
Replies: 3 comments 4 replies
-
Please help |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey. This error is probably caused because you are didnt defined namedAccounts in your hardhat.config.js. It should look like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Answer is: use this in your hardhat.config.js namedAccounts: {
deployer: {
default: 0,
},
user: {
default: 1,
},
} or use the await keyword if not already added here:
|
Beta Was this translation helpful? Give feedback.
3 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.
-
I am in lesson 7 and I ran "yarn hardhat deploy --tags mocks" and received an error. Can anyone help me solve this error?
Repo: https://github.com/SquilliamX/Hardhat-Fund-Me
Error:
00-deploy-mocks.js:
Beta Was this translation helpful? Give feedback.
All reactions