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

axelarjs-sdk has transitive dependencies on node-only APIs #231

Open
StephenFluin opened this issue Jan 18, 2023 · 0 comments
Open

axelarjs-sdk has transitive dependencies on node-only APIs #231

StephenFluin opened this issue Jan 18, 2023 · 0 comments

Comments

@StephenFluin
Copy link
Contributor

Problem: We have transitive dependencies on node-only APIs, meaning you can't load our SDK in web platforms like StackBlitz.

Example Reproduction: https://stackblitz.com/edit/typescript-zqtc4p?file=index.ts

Where are these dependencies coming from?

$ npm why xmlhttprequest-ssl
[email protected]
node_modules/xmlhttprequest-ssl
  xmlhttprequest-ssl@"~2.0.0" from [email protected]
  node_modules/engine.io-client
    engine.io-client@"~6.2.3" from [email protected]
    node_modules/socket.io-client
      socket.io-client@"^4.2.0" from @axelar-network/[email protected]
      node_modules/@axelar-network/axelarjs-sdk
        @axelar-network/axelarjs-sdk@"^0.12.0" from the root project

I'm not sure what the solution is because I assume we want to support both web-only and node environments. Two entrypoints?

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

1 participant