Lession5:TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')-Solved #5298
-
Beta Was this translation helpful? Give feedback.
Answered by
john-lawniczak
Apr 13, 2023
Replies: 2 comments 2 replies
-
I have solved the problem. Because the latest version of Ethers, ethers ^6.3.0, which appears to be unstable, you can easily solve the problem by downgrading to a previous version of Ethers, such as ethers 5.7.2. To downgrade to ethers 5.7.2, run either of the following commands on your command line interface, depending on your package manager For npm:
For yarn:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
来信已收到
|
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
Thanks cccooler, I found this issue as well. However, after downgrading to
ethers 5.7.2
I still recieve the following error:Were you able to solve this as well?
Solved it with changing
wallet
toWallet
.Adding the capital 'W':