Skip to content

Lesson 7 Test leads to TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') #4733

Discussion options

You must be logged in to vote

So I fixed this by debugging my testfile and it crashed at setting the const sendValue => so the error would have to be in ethers, to resolve this particular error:
1.Go to your package.json and search for ethers which should be on 6.0.2 if you just did yarn add ethers, then just run
2. Run this command =>

yarn add ethers @5.7.2

which should install ethers v 5.7.2 which works just fine.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bigBagBoogy
Comment options

@PatrickZimmerer
Comment options

@ProgrammingTemp
Comment options

@Dos-leg
Comment options

Answer selected by PatrickZimmerer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants