AWS Lambda Error: “Cannot find module '/var/task/index'”

后端 未结 9 1727
忘掉有多难
忘掉有多难 2020-12-23 02:54

Node.js Alexa Task Issue

I\'m currently coding a Node.js Alexa Task via AWS Lambda, and I have been trying to code a function that receives informat

9条回答
  •  抹茶落季
    2020-12-23 03:18

    Check that file name and handler name are same:

    That means that zip file has bundle.js file that exports handler function:

    exports.handler = (event, context, callback) => {//...}
    

提交回复
热议问题