0
"ethers": "^5.7.2",
"react": "^18.2.0",

Cannot read properties of undefined (reading 'Web3Provider')

1 Answer 1

0

I encountered the same problem,This is because your ether version is too high

You can solve it by downgrading ethers to version 5.x

"ethers": "^5.7.2",

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.