aws-lambda Cannot find module

前端 未结 12 685
野性不改
野性不改 2020-12-06 04:20

I keep getting this error in the aws-lambda console when uploading code from a zip file. I have tried uploading other zip files and they work correctly. The .js file is name

12条回答
  •  有刺的猬
    2020-12-06 04:56

    This turned out to be a simple one for me.

    I was getting, cannot create index. in my case, my main lambda file with the exports.handler in had to be called index.js

    Try calling your main file CreateThumbnail.js

提交回复
热议问题