Skip to content

Lession5:TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')-Solved #5298

Answered by john-lawniczak
cccooler asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks cccooler, I found this issue as well. However, after downgrading to ethers 5.7.2 I still recieve the following error:

TypeError: ethers.wallet is not a constructor

Were you able to solve this as well?

Solved it with changing wallet to Wallet.
Adding the capital 'W':

const wallet = new ethers.Wallet`

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@john-lawniczak
Comment options

Answer selected by cccooler
@cccooler
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants