Skip to content

Lesson7: TypeError: Cannot read properties of undefined (reading '11155111') #5399

Discussion options

You must be logged in to vote

@AKIN-THOMAS The error pops up because in the 01-deploy-fundme.js file, you are accessing networkConfig from helper file which tried to read the network setting for it 11155111 but the networkConfig variable is undefined in the deploy file.

The reason is, in you helper file you are not exporting the variables correctly;

module.export = {
    networkConfig,
    developmentChains,
}

it should be module.exports not module.export;

module.exports = {
    networkConfig,
    developmentChains,
}

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@AKIN-THOMAS
Comment options

@mojtaba-shahverdi
Comment options

@mojtaba-shahverdi
Comment options

@AKIN-THOMAS
Comment options

Comment options

You must be logged in to vote
1 reply
@AKIN-THOMAS
Comment options

Answer selected by AKIN-THOMAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants