Lesson 5: Cannot read properties of undefined (reading 'JsonRpcProvider') #6212
-
Hi everyone, I am a bit stumped here on lesson 5 since my package.json is directly from patrick's code and I am receiving an error message that I can't seem to solve. Can anyone help me out here? I believe my deploy.js to be correct. Ganache is also up and running In the background as well, and my private key is from ganache as well. Package.json:
Deploy.js:
error message:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Update: I changed my ethers version to ^5.7.2 and it fixed this error, however now i receive this error:
I then tested the Connection Manually to Try to make a direct HTTP request to my Ganache node to see if it's responsive. I used the curl tool for this:
|
Beta Was this translation helpful? Give feedback.
-
what worked for me: https://stackoverflow.com/questions/72927795/error-could-not-detect-network-event-nonetwork-code-network-error-version |
Beta Was this translation helpful? Give feedback.
what worked for me: https://stackoverflow.com/questions/72927795/error-could-not-detect-network-event-nonetwork-code-network-error-version