Skip to content Skip to sidebar Skip to footer

Uncaught Error: Script Error For "aws-sdk"

Trying to use the AWS SDK for node but I get this error Uncaught Error: Script error for 'aws-sdk' Heres my code. I tried using require('aws-sdk'), but the console error than said

Solution 1:

I prepare you a basic sample app, press here.

For run:

  • npm install
  • node app.js
  • open browser localhost:3000/

You must have pre-configured:

  • aws_credentials file

  • you must change region in app.js (AWS.config.update({region: 'REGION'});)

  • the user must have to access SNS

    enter image description here

Flow:

enter image description here


Post a Comment for "Uncaught Error: Script Error For "aws-sdk""