Lesson:11 Error loading hardhat node #4456
Replies: 6 comments 7 replies
-
@Shawon-Mandal Regarding your second problem, make sure that your hardhat dependency is in version 2.12.4. It will be shown in your package.json file. In case yours is a different version, then just change it to 2.12.4. This may solve the problem. If that doesn't solve it, then these are my dependencies and this is working for me: "devDependencies": {
"@chainlink/contracts": "^0.5.1",
"@nomicfoundation/hardhat-toolbox": "^2.0.0",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"ethers": "^5.7.2",
"hardhat": "^2.12.4",
"hardhat-deploy": "^0.11.22",
}, You can change yours to the above versions and try, if the main error is caused due to dependency issues. |
Beta Was this translation helpful? Give feedback.
-
@Shawon-Mandal Nope, these errors are not due to that, You should install these; npm install -D hardhat-deploy npm install --save-dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers Add this in hardhat.config.js file require('hardhat-deploy'); Now you should restart the node and perform the operations again and this time these will work. And make sure that console remember the old commands so if you declare anytime in the previous commands you need to work according to them. |
Beta Was this translation helpful? Give feedback.
-
Anyways,I think I should just move on to the next Lesson of this course.I'll come back again to this after some time. Thank you for your response @alymurtazamemon @shree675 |
Beta Was this translation helpful? Give feedback.
-
@Shawon-Mandal I have figured out the correct dependencies. In your package.json file, you have to change the versions of a couple of dependencies.
The final package.json will contain the above modified dependencies: "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"hardhat": "^2.12.4", and the rest of the existing dependencies. Don't forget to run npm install or yarn add after modifying the above two dependencies. |
Beta Was this translation helpful? Give feedback.
-
@Shawon-Mandal Go to main ReadMe on the course repo, on lesson 9 you can copy/paste ALL the dependencies we need for the course. You can also copy/paste Also, make sure you have all imports in your code. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
For anyone else using a more recent version of Node & Ethers.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I cloned the github repo in my VS Code and did accordingly the video and I am having some issues while loading hardhat node.
First of all,it keeps on loading and its stuck here for a long time.
next is the command issue.I think the hardhat node is the main reason behind this problem.
How can I solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions