and simply created an object var s3 = new AWS.S3(); or var s3 = new window.AWS.S3(); in app.js for a test.
However, it returned "Uncaught ReferenceError: AWS is not defined" OR "Uncaught TypeError: Cannot read property 'S3' of undefined" in console log when I tried to run it from browser.
We have sometimes noticed a timeout issue while loading scripts. As a workaround, could you try jQuery.getScript to load the script?
Start your 30-day free trial. No credit card required. No strings attached.Start Free Trial