Skip to content
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

Does not compile on esm.sh #405

Closed
hazae41 opened this issue Jan 9, 2021 · 3 comments
Closed

Does not compile on esm.sh #405

hazae41 opened this issue Jan 9, 2021 · 3 comments

Comments

@hazae41
Copy link

hazae41 commented Jan 9, 2021

When compiling "walletconnect" or "@walletconnect/web3-provider" on https://esm.sh, we get the following error

https://cdn.esm.sh/v14/walletconnect@1.3.3/esnext/walletconnect.development.js

/* esm.sh - error */
throw new Error("[esm.sh] " + "yarn: warning walletconnect \u003e @walletconnect/utils \u003e rpc-payload-id@1.0.0: Packaged deprecated in favor of @json-rpc-tools/utils\nwarning walletconnect \u003e @walletconnect/web3-provider \u003e web3-provider-engine \u003e request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\nwarning walletconnect \u003e @walletconnect/web3-provider \u003e web3-provider-engine \u003e eth-block-tracker \u003e safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter\nwarning walletconnect \u003e @walletconnect/web3-provider \u003e web3-provider-engine \u003e eth-json-rpc-filters \u003e safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter\nwarning walletconnect \u003e @walletconnect/web3-provider \u003e web3-provider-engine \u003e eth-json-rpc-middleware \u003e safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter\nwarning walletconnect \u003e @walletconnect/web3-provider \u003e web3-provider-engine \u003e eth-json-rpc-filters \u003e json-rpc-engine \u003e safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter\nwarning walletconnect \u003e @walletconnect/web3-provider \u003e web3-provider-engine \u003e request \u003e har-validator@5.1.5: this library is no longer supported\nerror Couldn't find the binary git\n");
export default null;

The failing error is "Couldn't find the binary git"

[esm.sh] yarn: warning walletconnect > @walletconnect/utils > rpc-payload-id@1.0.0: Packaged deprecated in favor of @json-rpc-tools/utils
warning walletconnect > @walletconnect/web3-provider > web3-provider-engine > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning walletconnect > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning walletconnect > @walletconnect/web3-provider > web3-provider-engine > eth-json-rpc-filters > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning walletconnect > @walletconnect/web3-provider > web3-provider-engine > eth-json-rpc-middleware > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning walletconnect > @walletconnect/web3-provider > web3-provider-engine > eth-json-rpc-filters > json-rpc-engine > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning walletconnect > @walletconnect/web3-provider > web3-provider-engine > request > har-validator@5.1.5: this library is no longer supported
error Couldn't find the binary git

It seems WalletConnect relies on git in order to compile.
Maybe we could ditch git, or provide a ESM build directly?

@pedrouid
Copy link
Member

well the first warning regarding a deprecation is because of a library migration from rpc-payload-id to @json-rpc-tools/utils. To fix this I've published a pre-release for v1.3.4-rc.1 that fixes this issue (release on Monday for v1.3.4)

now about the web3-provider-engine that's not a dependency I actually maintain so I'm not entirely sure how to handle that particular issue

if you have any tips on how we could distribute ESM builds for walletconnect-monorepo... please feel free to make suggestions and if it there isn't many issues I could include it by Monday on the next release

@hazae41
Copy link
Author

hazae41 commented Jan 13, 2021

@pedrouid You can use esbuild https://github.com/evanw/esbuild

@hazae41
Copy link
Author

hazae41 commented Jan 26, 2021

The issue seems fixed, it works now, even with the same module version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants