Skip to content

TypeError: ethers.WebSocketProvider is not a constructor #4458

Answered by ricmoo
pixelpawnshop asked this question in Q&A
Discussion options

You must be logged in to vote

In v5, you need to use new ethers.providers.WebSocketProvider, since it was a monorepo, it required anchors on the root ethers object.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pixelpawnshop
Comment options

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