Closed riderx closed 7 months ago
The SDK requires some Node.js dependencies. See here
Perhaps Deno support will be available sooner or later. I don't have any idea about that.
Deno does support node deps since a year :) https://docs.deno.com/runtime/manual/node/compatibility It seems the problem is not them, maybe one of the other npm deps. Maybe fs is problematic also.
can I try to work on it ?
Sure go ahead. But the typescript rewrite has been going really slow right now.
I'm not sure to understand what you mean by "typescript rewrite" ?
I just realized it works in Deno with ESM magic!
Just import like that
import { Client } from "https://esm.sh/minio?target=deno"
TADA :)
For the record here is the issue i get on Deno or Cloudflare workers env: I created a PR to address all of these issue here: https://github.com/minio/minio-js/pull/1265
IT's now allowed to use in Deno:
And then i get error like that: