AWS S3 is not working


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?


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

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

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.

1 Like

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

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?

Now I understand what you’re talking about. Is that repository: ? Or which is the official?

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

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