-
Notifications
You must be signed in to change notification settings - Fork 86
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
Typescript errors when creating provider in ethersv5 #126
Comments
Possible dupe or related to #83? For now, does casting |
Ah whoops, yeah this is a duplicate. I'm using |
This works, but I recommend casting to I'll try to solve the typings issues between Web3JS and Ethers soon! |
I'm on the latest version, but I'm also getting this error. I'm a bit worried using |
This one fell off the map for us a bit as it's strictly related to typings and has a known workaround (casting to |
All good. thanks for the crazy fast response! |
✅ Prerequisites
magic-sdk
)?🐛 Description
Trying to create an ethersv5
Web3Provider
usingmagic.rpcProvider
as described in docs results in a Typescript error🧩 Steps to Reproduce
🤔 Expected behavior
Types to match such that no error appears
😮 Actual behavior
Typescript reports that
RPCProviderModule
can't be assigned toExternalProvider | JsonRpcFetchFunc
💻 Code Sample
I'm afraid I can't share the repo but here's the relevant code
🌎 Environment
magic-sdk
yarn
The text was updated successfully, but these errors were encountered: