CopySourceOptions, CopyDestinationOptions is not a constructor
See original GitHub issueDescription
Dependencies from package-lock.json
"minio": "7.0.27"
"@types/minio": "7.0.13"
"typescript": "4.6.3"
minimal reproducible example
import {
CopyDestinationOptions,
CopySourceOptions,
} from 'minio';
...
const copySourceOption1 = new CopySourceOptions({
Bucket: 'bucket1',
Object: 'demo-bucket/1.json',
});
const destOption = new CopyDestinationOptions({
Bucket: 'bucket1',
Object: 'compose-bucket/demo-compose.json',
});
Error (node:492239) UnhandledPromiseRejectionWarning: TypeError: minio_1.CopySourceOptions is not a constructor
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
CopyObjectCommand | S3 Client - AWS SDK for JavaScript v3
The copy request charge is based on the storage class and Region that you specify for the destination object. For pricing information, see...
Read more >Java IndexOutOfBoundsException “Source Does Not Fit in Dest”
Therefore, using a constructor is a good option for copying immutable objects like Integers and Strings. 4.3. addAll.
Read more >Read access violation when trying to create copy constructor ...
I'm just wondering if there's any flaws in this DeleteList method. // Delete all elements in the linked list // Not only do...
Read more >azure.storage.blob.BlobClient class | Microsoft Learn
Uncommitted blocks are not copied. At the end of the copy operation, the destination blob will have the same committed block count as...
Read more >Working With Files - Gradle User Manual
They all share most of the configuration options of Copy , including ... You can not change the destination path of empty directories...
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
Please update the import statements like in examples.
e.g.
var Helpers = require("../dist/main/helpers")
use it like:
new Helpers.CopySourceOptions( {})
we will try adding all module/import builds in near future.
i still have the same problem at version like this “minio”: “^7.0.32”, “@types/minio”: “^7.0.14”,