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

TypeScript Build Issue with kubo-rpc-client Replacement for ipfs-http-client #162

Open
guplersaxanoid opened this issue Aug 22, 2023 · 0 comments

Comments

@guplersaxanoid
Copy link

guplersaxanoid commented Aug 22, 2023

We recently switched to kubo-rpc-client as a drop-in replacement for ipfs-http-client in our project. However, we're encountering some TypeScript build errors after making this change.

The errors appear to be related to resolving the ReadableStream type, as illustrated in the following screenshot:

image

For reference, we are currently using TypeScript version 5.1.6 and @types/node version 20.5.1.

We have observed that ReadableStream is declared under module 'stream/web' in @types/node, but it seems like TypeScript is having trouble resolving this type.

We have already attempted the following troubleshooting steps:

  1. Ensured the latest versions of TypeScript and @types/node are installed.
  2. Checked the tsconfig.json to make sure it does not limit TypeScript's type resolution in any way.

However, these steps did not resolve the issue. We're seeking assistance to understand why these build errors are occurring and how we can fix them. Any suggestions or insights would be much appreciated.

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