Skip to content

Lesson 9 I got a TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') #4924

Answered by Red12-45
Abeltemi asked this question in Q&A
Discussion options

You must be logged in to vote

The fix for me was to downgrade "ethers" to version 5.4 in the package.json, then folder and lastly npm install to install ethers again.

Step 1 :in package.json

 {
   "dependencies": {
   "ethers": "5.4"      <<<<<-------------
   }
 }

Step 2 : Delete node_modules

Step 3 : npm install or yarn install

That will fix ur issue

Replies: 1 comment 4 replies

Comment options

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

@Red12-45
Comment options

@Abeltemi
Comment options

@RichardKoh1
Comment options

Answer selected by Abeltemi
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