Skip to content

ethers.provider is not defined #4196

Closed Answered by gurwindersinghdev
Yana-Gupta asked this question in Q&A
Discussion options

You must be logged in to vote

hi, you are the using the old documentation , have a look on new documentation

https://docs.ethers.org/v6/getting-started/

const provider = new ethers.providers.Web3Provider(ethereum);

providers.Web3Providers is replaced by this ..... (BrowserProvider)

const provider = new ethers.BrowserProvider(window.ethereum);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aruns05
Comment options

@Ahtaxam
Comment options

Answer selected by Yana-Gupta
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