-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v5] Failed to meet quorum when importing from @ethersproject/providers
directly
#874
Comments
There was a similar discussion recently: check this. A common factor in both issues is that, a blunder is involved. However, in my project (typescript/nodejs) the second snippet code works. Can this be an issue from the bundler? If someone can try reproducing with a different bundler. |
Here's a version with a minimal Webpack configuration, no TypeScript, Babel or other stuff. I'm still able to reproduce, it seems like an incompatiblity with Ethers.js and browsers? |
When using a
But no HTTP request is made at all... |
I generally avoid running arbitrary repos on my computer. Can you include the output for Also, it looks like your web pack config may be missing the mainFields? Can you try adding |
I just pushed
|
One more quick ask to help me debug... Can you include a non-minified version? :) I see... Yes, I missed that "unspecified" part... |
Just pushed a non-minified version. Thanks for looking into this! |
Can you try out 5.0.0-beta.192 and let me know if that resolves the issue with react? Thanks! :) |
It's working now. thanks again 👍 |
I apparently posted a comment meant for this issue into the wrong tab. This was meant for this issue. Not that it matters much. but might be useful in the future to keep things cross-referenced. :) |
For those that are still having problems after the patch. Try switch from esm to cjs. I was having the same problems in Aws lambda. |
When trying to use any
Provider
method, it seems that importing from@ethersproject/providers
doesn't work, wheres importing fromethers
works fine. I'd prefer to import from@ethersproject/providers
, since I don't need all of the functionality provided byethers
.I am able to reproduce the issue with this code:
The second one results in a long error:
Here is a minimal repo where I'm able to reproduce this issue: https://github.com/Mrtenz/ethers.js-issue.
The text was updated successfully, but these errors were encountered: