AWS Lambda: Unable to import module

后端 未结 6 1296
误落风尘
误落风尘 2021-02-05 13:12

please forgive me, I am totally new at Lambda and Node.

I am trying to replicate this git to order a pizza using an AWS IoT button.

My current code is:

<

6条回答
  •  不要未来只要你来
    2021-02-05 13:36

    Ran into this problem as well. What solved it for me was realizing that the file path was too long on a Windows machine. After zipping, I realized that the contents of node_modules was empty. I copied the files for zipping to a higher level path e.g. C:\User\ and zipped the specified files. Hope this helps!

提交回复
热议问题