S3
S3 copied to clipboard
Import package
I'm using Meteor 1.4 and I don't know how to import this package. I've tried with import {S3} from 'meteor/lepozepo:s3'
, import S3 from 'meteor/lepozepo:s3'
, import 'meteor/lepozepo:s3'
and import {AWS} from 'meteor/lepozepo:s3'
. I'm doing this in a file in the server
directory.
The package is working, but I am wondering too, from where one should import the S3
?
import { S3 } from 'meteor/lepozepo:s3'; // seems not to work
Hey guys! I haven't set up the package for imports yet. I'll have a look over the weekend so we can lazy load it too.
Awesome, thank you for your work!
Thanks, I had not figured out that the package is automatically loaded in the whole app, I haven't understood the way of importing javascript packages yet, it's a bit non-standard.
I've run meteor add lepozepo:s3@=4.1.3
but Meteor doesn't seem to find the import/declaration for S3.
server/methods.ts (795, 15): Cannot find name 'S3'.
How should S3 be imported/declared?
The problem is that S3
is made global by writing @S3 = …
(coffeescript) instead of using api.export
in package.js
Still the same? I tried to import S3 to /imports/api/methods.js with no luck and without importing it says "S3.delete is not a function"
Would be awesome if there was a fix for this.
I'd love to have this too!
No news on this feature? Thanks anyway!
I don't want to pile on but am just getting my act together to use ES2015 modules and ran into the same issue. Thank you for maintaining this package and would be grateful if you were able to make this update.
have anyone found solution for this?