Lepozepo / S3

A simple helper for easily uploading files to Amazon S3 from Meteor. This package will also make Knox available server-side.
MIT License
274 stars 74 forks source link

Import package #123

Open andresespinosapc opened 8 years ago

andresespinosapc commented 8 years ago

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.

Njke commented 8 years ago

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
Lepozepo commented 8 years ago

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.

Njke commented 8 years ago

Awesome, thank you for your work!

andresespinosapc commented 8 years ago

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.

yuyinitos commented 7 years ago

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?

jeanfredrik commented 7 years ago

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

lunatolun commented 7 years ago

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"

nilsi commented 7 years ago

Would be awesome if there was a fix for this.

JeremyIglehart commented 7 years ago

I'd love to have this too!

jjgumucio commented 7 years ago

No news on this feature? Thanks anyway!

allenfuller commented 6 years ago

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.

anaya-prog commented 5 years ago

have anyone found solution for this?