alexa-samples/skill-sample-nodejs-audio-player

"errorMessage": "Cannot find module '/var/task/index'"

pvamsik opened this issue · 3 comments

I have followed the instructions mentions in many of the threads and uploaded the zip file for the lambda function.

  1. Opened js folder in command prompt
  2. Ran npm install
  3. zipped the folder using 7zip
  4. Uploaded zipped folder

When I test the function with input, I am getting the following error attached. Can someone help please.

lambda management console

Thanks
Vamsi

This is because you have zipped the folder rather than the files .

Soln: select all the files and press add to archive

Hope it helps

Thank you @adi701. I finally figured this out last night and was able to proceed.

@pvamsik .. How did you troubleshoot this?