TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') #5349
Unanswered
CordeiroAboumrad
asked this question in
Q&A
Replies: 1 comment
-
@CordeiroAboumrad Yes, you can work with the newer version of ethers and see the latest ethers documentation for changes. But one thing should be noted, if you are using any package which is dependent on ethers version below 6 (such as hardhat-deploy) and it does not have upgraded to 6 then you need to use ethers version 5. |
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.
-
Hi everyone,
As I am still a noob here, I would like to check with you guys the JsonRpcProvider error. I've seen som topics about downgrading ethers package, which worked just fine for me.
On the other hand, I would like to know if it is possible to work with newer versions of ethers, if I provide the JsonRpcProvider proper URL. Additionally, as I've seen the documentation, if I do not provide an URL, a default connection should be used, right?
Another issue: on lesson 13, if I were to use a newer version os ethers, could I somehow provide the alchemy URL that I've created to the JsonRpcProvider? I've tried the following command, without success:
"ethers.providers.JsonRpcProvider(MAINNET_RPC_URL)"
Thank you guys!
Beta Was this translation helpful? Give feedback.
All reactions