-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove external references from package meta data - codeload.github.com #297
Comments
Hi @VamshikrishDanam, it looks like the version of |
Thank you, @elliot Winkler. Actually, we haven't included this package in our repo. We are trying to install wagmi and internally it is using eth-sig-util. └─┬ @amfi/connect-wallet@1.1.21 I have raised the issue with wagmi as well. May be I should ask them to use latest version of eth-sig-util? Culd you please confirm if the latest version, 5.0.2 has the fix? |
Yes, and in fact 5.0.2 doesn't rely on Can you run |
We are not able to install wagmi because of this dependency. When I run this command locally, I get this. yarn why eth-sig-util |
Ah, I misunderstood how you were installing I managed to track this down. Here's the dependency graph that's relevant to your problem:
So, the issue here is with
and therefore you wouldn't get this issue. It may very well be that Coinbase is not aware of these new versions. I'll see if I can dedicate some time to submitting a pull request to fix this soon. In the meantime, you should be able to fix this by adding a |
Thank you, @mcmire. After adding eth-json-rpc-filters 5.1.0, I am getting new 404 error. Any clue? npm ERR! code E404 npm ERR! 404 |
@VamshikrishDanam Hmm, great question. I'm not sure how that could happen. However, I gave you the wrong instructions, so that could be it. By the way, I looked into this some more and it looks like Coinbase did update the Wallet SDK to use a newer version of |
@mcmire No problem, I figured it out for npm as overrides, https://stackoverflow.com/questions/52416312/npm-equivalent-of-yarn-resolutions. Yeah, I saw this and was not sure when they will publish. I didn't realize it was in beta, added in overrides and it works now, Thank you! I am able to install wagmi!! |
@VamshikrishDanam Awesome, glad you got it working! I'm going to close this as it seems the problem is solved, but let me know if you run into any more issues. |
Thank you, @mcmire! |
Hey @mcmire I am getting this same error when trying to install walletconnect. Could you please help me identify which dependency is causing it? npm ERR! code ETIMEDOUT |
Hi @VamshikrishDanam, I can tell you how to do it this time! The first thing you can try is to look up the dependency graph for the package you're trying to install. There are a couple of sites I know of to do this: https://npm.anvaka.com/ and https://npmgraph.js.org/. In both cases, type in the name of the package and it'll crawl dependencies of the package, dependencies of the dependencies, etc. In this case the second site gives us a clue. Once you load the graph you can press Ctrl-F / Cmd-F and search for
That said, there is some context here that you wouldn't see just from viewing the graph. In essence, you're trying to install WalletConnect v1. Unfortunately, this relies on an old package of ours, I'd like to point you in the right direction here, but it depends on which platform you're using. Are you trying to build a dapp on desktop or on mobile? |
Thank you, @mcmire, for the breakdown, now I know how to check for dependency tree with npm! We are building a dapp compatible to both mobile and desktop but our majority of users will be using mobile. I have integrated AuthClient and generateNonce from "@WalletProvider/auth-client". |
@VamshikrishDanam Gotcha, makes sense! It looks like the official docs for v2 also recommend using |
wagmi Version
0.11.5
Current Behavior
Hey Team, we are trying to include wagmi package in our application. While installing this package in our network we are getting network timed out error as it is trying to access one of it's transient dependency from codeload.github.com which is restricted in our network.
Error:
npm ERR! code ETIMEDOUT
npm ERR! network request to https://codeload.github.com/ethereumjs/ethereumjs-abi/tar.gz/ee3994657fa7a427238e6ba92a84d0b529bbcde0 failed, reason: connect ETIMEDOUT 140.82.114.10:443
npm ERR! network This is a problem related to network connectivity.
Expected Behavior
We want to install wagmi and enable wallet connect in our application.
As we analyzed, it is because of this following line: https://github.com/MetaMask/eth-sig-util/blob/1.x/package.json#L24 that codeload.github.com reference is hardcoded into the package meta data.
We believe, one possible solution for this issue is, if we can upgrade wagmi to have all external dependencies within the package instead of using external github references.
Steps To Reproduce
If we try to install wagmi with common command, npm i wagmi within our ecosystem we are getting this error.
Error:
npm ERR! code ETIMEDOUT
npm ERR! network request to https://codeload.github.com/ethereumjs/ethereumjs-abi/tar.gz/ee3994657fa7a427238e6ba92a84d0b529bbcde0 failed, reason: connect ETIMEDOUT 140.82.114.10:443
npm ERR! network This is a problem related to network connectivity.
The text was updated successfully, but these errors were encountered: