Skip to content

TypeError: ethers.JsonRpcProvider is not a constructor - Plz help me to solve this code #6370

Answered by Codeme3005
Codeme3005 asked this question in Q&A
Discussion options

You must be logged in to vote

Solution --- let provider = new ethers.providers.JsonRpcProvider(process.env.RPC_URL); -- repalce code in 5th line

// make sure you run the ether js version below 6.

Replies: 1 comment

Comment options

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