-
-
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
ReferenceError in JsonRpcProvider #822
Comments
Did you remove your |
Actually... Weird, why am I not getting that compile time issue?? |
This is definitely a bug. And I'm concerned my TypeScript compiler isn't detecting it. What version are you using? If I reorder the operations a bit, I can get my compiler to (correctly) complain. |
I've got a fix in place, just testing now. I've simplified the types JsonRpcProvider can accept as well. Previously you could do something like This is not as important now, since the |
The CI has finally passed and this has been published to 5.0.0-beta.186. I've also bumped all the package.json versions in each package.json, so there should be no need to clear out Try it out and let me know if there is still a problem. I'm also still interested in reproducing the original issue locally. Can you pass along what version of TypeScript you were using? My version let that through without issue. Maybe there is a tsconfig setting (which would seem weird to allow wildly unsafe behaviour). Thanks! |
The issue was in the umd output of this lib : https://github.com/wighawag/svelte-wallet that use rollup to bundle the output in multiple format. the umd output was then used in my application and got the error mentioned at runtime |
Does the latest issue still have this problem? I will also be opening a bug with TypeScript later (I've searched a bit but haven't found an already existing issue on their repo). I'll link to it here. |
The issue happening at this line here : https://github.com/wighawag/svelte-wallet/blob/1614d0d47b1ee8da16e0fc642fbe027f8f27b30c/dist/svelte-wallet.umd.js#L17356 |
The latest seem to works fine |
Awesome. Yeah, that line was in the older version. Glad it works now. :) |
Ah yes... I think that will. Thanks, I'll grep the source for all uses of super. |
I've opened this bug on TypeScript. Let me know if there is anything else to add. |
FYI. Looks like that issue has been marked to be fixed in TypeScript 4. :) |
The FallbackProvider has also been updated and is available in 5.0.0-beta.187. |
Closing this now, but if you have any more issues please re-open. Thanks! :) |
Getting this error
in
ethers.js/packages/providers/src.ts/json-rpc-provider.ts
Line 238 in 7f0374c
The text was updated successfully, but these errors were encountered: