Error while trying to run hardhat node #5553
Closed
kaushikc44
started this conversation in
General
Replies: 2 comments 2 replies
-
post your mock deploy script here |
Beta Was this translation helpful? Give feedback.
2 replies
-
Found the error , it was in getNamedAccounts as that is a function I forgot to put the brackets. |
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.
-
Error running JSON-RPC server: ERROR processing C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\deploy\00-deploy-mocks.js:
TypeError: Cannot read properties of undefined (reading 'length')
at getFrom (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat-deploy\src\helpers.ts:1726:14)
at _deploy (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat-deploy\src\helpers.ts:534:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at _deployOne (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat-deploy\src\helpers.ts:1004:16)
at Object.module.exports [as func] (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\deploy\00-deploy-mocks.js:13:9)
at DeploymentsManager.executeDeployScripts (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1222:22)
at DeploymentsManager.runDeploy (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1055:5)
at SimpleTaskDefinition.action (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat-deploy\src\index.ts:438:5)
at Environment._runTaskDefinition (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:330:14)
at Environment.run (C:\Users\kaush\OneDrive\Desktop\Projects\hardhat-fund-me-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:163:14)
I keep getting this error while trying to run an hardhat node.
Beta Was this translation helpful? Give feedback.
All reactions