Hardhat deploy script #6664
Unanswered
Aggregator2
asked this question in
Troubleshooting
Replies: 1 comment
-
Hey @Aggregator2, could you check that you have the https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-ethers#installation The missing connection is the most likely reason that |
Beta Was this translation helpful? Give feedback.
0 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'm working on a Hardhat project and encountering:
This happens when I run my
deploy.js
script. The error occurs at the line:I have this at the top of the file:
But
ethers
still seems to be undefined.System:
npx hardhat node
Other parts of the script like
getSigners()
and contract deployment work fine. I’ve tried reinstalling Hardhat, usingrequire("ethers")
instead, and restarting VS Code — but no change.Full error:
Beta Was this translation helpful? Give feedback.
All reactions