minio / minio-js

MinIO Client SDK for Javascript
https://docs.min.io/docs/javascript-client-quickstart-guide.html
Apache License 2.0
933 stars 274 forks source link

error Creating client #1349

Open jfparrado opened 2 days ago

jfparrado commented 2 days ago

This is my code: import * as Minio from 'minio';

const clientOptions: Minio.ClientOptions = { endPoint: 'xxxx', port: xxxx, useSSL: false, accessKey: "xxxx", secretKey: "xxxx", // region: "xxxx", };

const minioClient = new Minio.Client(clientOptions);

export default async (path: string, file: File) => { // ... }

But i always get this error "500 The "original" argument must be of type Function

at promisify3 (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/minio.js?v=258a902a:29773:15) at http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/minio.js?v=2"

how can i resolve this? I am using NUXT3 and i am defining it inside of the folder compables

prakashsvmx commented 1 day ago

What is the typescript version and how is the build setup ?