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

后端 未结 9 1701
忘掉有多难
忘掉有多难 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:11

    In my case it was because I had the handler file in inner src directory.

    I had to change the 'Handler' property within Lambda from:

    index.handler
    

    to

    src/index.handler
    

提交回复
热议问题