aws-lambda Cannot find module

前端 未结 12 717
野性不改
野性不改 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:54

    This is unrelated but google brought me here, so:

    AWS will give you an error:

    Unable to import module '': Error
    

    What was really happening for me, was that was requiring an unexisting JS file. The error is a bit misleading.

提交回复
热议问题