Cannot read property 'Client' of undefined
See original GitHub issueI’m simply tried to follow the tutorial. When im trying to do:
import Minio from 'minio';
import { minioConfig } from '../config';
const client = new Minio.Client(minioConfig);
I got this error TypeError: Cannot read property 'Client' of undefined
Installation:
"@types/minio": "^7.0.1"
"minio": "^7.0.8"
VS Code intellisense works, installation good, but when trying to run i just stuck with that error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'client' of undefined
This is an error generated from the module Knex in Node.js, from inside the module. Knex is complaining that it's not getting data...
Read more >Cannot read property 'client' of undefined in config.client #1302
My case: I was using a node environment variable instead of a string to define 'production'. To run my instance on EC2, I...
Read more >HELP! "Cannot read property 'client' of undefined" error at ...
HELP! "Cannot read property 'client' of undefined" error at checkout. Beginning this weekend, customers are intermittently receiving this error when ...
Read more >Can't figure this one out..any help greatly appreciated. : r/node
I'm starting my node server up and ever since moving my api file to a new location (out of one directory and into...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined ... Undefined means that a variable has been declared but has not been assigned a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hm, wait. This works:
import * as Minio from 'minio';
instead of:import Minio from 'minio;
I think it is better to put this in the doc. Thanks for your time…
A.sample usage on web can also be found here. https://github.com/prakashsvmx/minio-js-web-browser-example/blob/master/src/mc.js