I am writing a skill which requires aws-sdk, so I have created a zip with the below contents in root
After uploading to AWS, inline editing was not available (that's understood). Now when I try to test my Alexa skill, I get the below error
Unable to import module 'index': Error at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19)
Looks like index.js is not getting found. I have put all the files in root and zipped
I then tried to upload a small project and below is my observation. By default when you create a function from scratch there is a folder created and when we upload the zip, on unzip there is a folder created again as part of unzip which is probably causing the issue, please see the screenshots below.
After Zip upload
If inline editing is available, you can fix this by rearranging files, but if inline editing is not available, we cant fix it. Need urgent help on this