Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import package #123

Open
andresespinosapc opened this issue Aug 8, 2016 · 12 comments
Open

Import package #123

andresespinosapc opened this issue Aug 8, 2016 · 12 comments

Comments

@andresespinosapc
Copy link

andresespinosapc commented Aug 8, 2016

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
Copy link

Njke commented Aug 10, 2016

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
Copy link
Owner

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
Copy link

Njke commented Aug 10, 2016

Awesome, thank you for your work!

@andresespinosapc
Copy link
Author

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
Copy link

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
Copy link

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

@lunatolun
Copy link

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
Copy link

nilsi commented Apr 17, 2017

Would be awesome if there was a fix for this.

@JeremyIglehart
Copy link

I'd love to have this too!

@jjgumucio
Copy link

No news on this feature?
Thanks anyway!

@allenfuller
Copy link

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
Copy link

have anyone found solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests