Lesson 15 - Cannot read properties of undefined (reading 'toString') #2450
-
Hi everyone, I'm trying to deploy the update-frontend.js. But I'm getting this error:
Hardhat node is running. Got everything installed:
Does anyone have an idea where is the problem? Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
As fare as I see, this problem is connected with |
Beta Was this translation helpful? Give feedback.
-
Hey @zeledorka run |
Beta Was this translation helpful? Give feedback.
Hey @zeledorka run
yarn hardhat console
and in the console typenetwork.config.chainId.toString()
and see if it returns a value back to you.And I hope you are running this on hardhat network not localhost because I don't see any localhost network configuration in your hardhat.config.js file.