Closed robbiemu closed 2 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
npm i -D ipfs-utils@9.0.2 fixes this for me
I'm trying to use this in an azure function with a ipfs node hosted there as well.
A small issue, which is not related but just to note it, is that I had to set
"esModuleInterop": true,
in my tsconfig as the exports are old-style. But I'm sure that will change when it needs to, its not my issue.I get this error:
I think in this case we really don't need a local file. The filesize is limited to 100MiB, it can safely be processed in memory. I'm getting it from an HTTP multipart post using parse-multipart, so my buffer is the full in memory copy of the file in a buffer.
I can manually remove the fs from the d.ts file (replace with any) and get it to run. :)