AWS S3 is not working


#1

Hi!

I have the following code inside a .ts file:

import * as AWS from ‘aws-sdk’;
/*
** Some code here
*/
const s3 = new AWS.S3();

The app doesn’t run, if I comment that line it does. Which can be the error?

Thanks!


#2

Are you talking about the official ionic-angular starter template?


#3

I’m using Ionic 2, the starter template matters?


#4

You give us to less information so I thought maybe you are using the starter template.
Check it out and I think it well help you to solve your problems.


#5

Why are the two things related? The line:

const s3 = new AWS.S3();

is stopping the application without giving any kind of error or output (the app appears blank). What can be the problem? Maybe it’s a dependency


#6

The two are related because this starter template is meant to get you up and running with AWS. So did you take a look at that starter template already to see where it differs from your implementation?


#7

Now I understand what you’re talking about. Is that repository: https://github.com/driftyco/ionic2-starter-aws ? Or which is the official?


#8

Yes, that’s the one you should take a look at.


#9

2 posts were split to a new topic: Ionic2-starter-aws: Error: Missing credentials in config