S3 icon indicating copy to clipboard operation
S3 copied to clipboard

Import package

Open andresespinosapc opened this issue 8 years ago • 12 comments

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.

andresespinosapc avatar Aug 08 '16 13:08 andresespinosapc

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

Njke avatar Aug 10 '16 13:08 Njke

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.

Lepozepo avatar Aug 10 '16 13:08 Lepozepo

Awesome, thank you for your work!

Njke avatar Aug 10 '16 13:08 Njke

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.

andresespinosapc avatar Aug 10 '16 13:08 andresespinosapc

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?

yuyinitos avatar Nov 16 '16 13:11 yuyinitos

The problem is that S3 is made global by writing @S3 = … (coffeescript) instead of using api.export in package.js

jeanfredrik avatar Dec 27 '16 15:12 jeanfredrik

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"

lunatolun avatar Mar 08 '17 05:03 lunatolun

Would be awesome if there was a fix for this.

nilsi avatar Apr 17 '17 16:04 nilsi

I'd love to have this too!

JeremyIglehart avatar May 14 '17 01:05 JeremyIglehart

No news on this feature? Thanks anyway!

jjgumucio avatar Aug 11 '17 17:08 jjgumucio

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.

allenfuller avatar Nov 04 '17 23:11 allenfuller

have anyone found solution for this?

anaya-prog avatar Jul 19 '19 13:07 anaya-prog