-
Notifications
You must be signed in to change notification settings - Fork 283
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
Cannot use Minio in Deno #1261
Comments
The SDK requires some Node.js dependencies. See here minio-js/src/internal/client.ts Lines 1 to 6 in 6b9845d
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 :) 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
TADA :) |
For the record here is the issue i get on Deno or Cloudflare workers env: |
Thank you! And the typesdeno.json{
"imports": {
"minio": "https://esm.sh/[email protected]?target=deno"
},
"vendor": true
} index.js// @deno-types="https://esm.sh/v135/@types/[email protected]/index.d.ts"
import { Client } from 'minio' |
IT's now allowed to use in Deno:
And then i get error like that:
The text was updated successfully, but these errors were encountered: