Skip to content

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') #5252

Answered by alymurtazamemon
ejmorian asked this question in Q&A
Discussion options

You must be logged in to vote

@ejmorian Yes, the latest version syntax is like this ethers.JsonRpcProvider, but I would still recommend using a version below 6. Because from lesson 6 you will be using hardhat-deploy dependency which is not updated to version 6 and ethers version 6 is still in beta.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@ahsanuzair
Comment options

@alymurtazamemon
Comment options

@ahsanuzair
Comment options

@anurag5764
Comment options

@youngpriince
Comment options

Answer selected by ejmorian
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
7 participants