Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'index' #2

Closed
jmstone617 opened this issue Jan 5, 2016 · 1 comment
Closed

Cannot find module 'index' #2

jmstone617 opened this issue Jan 5, 2016 · 1 comment

Comments

@jmstone617
Copy link

I uploaded the .zip file to a Lambda function based off of the node.js DynamoDB Streams blueprint. This configures a handler index.handler. I was unable to download the zip file using Safari, but successful using Chrome. However, Lambda complained that it was unable to unarchive the zip file. So, I just downloaded the folder and zipped it locally. The upload then succeeded, but I am getting the following error message after testing:

{
"errorMessage": "Cannot find module 'index'",
"errorType": "Error",
"stackTrace": [
"Function.Module._resolveFilename (module.js:338:15)",
"Function.Module._load (module.js:280:25)",
"Module.require (module.js:364:17)",
"require (module.js:380:17)"
]
}

@jmstone617
Copy link
Author

The function works if I download the entire repo and upload the .zip file that way.

@ghost ghost mentioned this issue Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant