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

error Creating client #1349

Open
jfparrado opened this issue Sep 25, 2024 · 1 comment
Open

error Creating client #1349

jfparrado opened this issue Sep 25, 2024 · 1 comment

Comments

@jfparrado
Copy link

jfparrado commented Sep 25, 2024

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
Copy link
Member

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

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

2 participants