Urigo / meteor-angular-socially

angular-meteor example and tutorial app
https://www.angular-meteor.com/tutorials/socially/angular1/bootstrapping
155 stars 143 forks source link

Importing edgee:slingshot in client #156

Closed bliles closed 7 years ago

bliles commented 7 years ago

The tutorial mentions using https://atmospherejs.com/edgee/slingshot for direct uploads to a cloud provider.

I've followed this tutorial in setting up my angular2/meteor project, and I've done this to use slingshot: meteor add edgee:slingshot

I can import and use meteor/edgee:slingshot in the server code as: import { Slingshot } from 'meteor/edgee:slingshot';

But when I try to import slingshot to a component in the client app, the angular app fails to start with this error: Unexpected value 'undefined' declared by the module 'AppModule' at SyntaxError.BaseError [as constructor]

This is my import in the component.ts file: import { Slingshot } from 'meteor/edgee:slingshot';

Any help would be greatly appreciated.

bliles commented 7 years ago

I had some other code in the component that was broken, my fault.