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

Unable to import module es #9

Open
Nash897 opened this issue Aug 20, 2016 · 1 comment
Open

Unable to import module es #9

Nash897 opened this issue Aug 20, 2016 · 1 comment

Comments

@Nash897
Copy link

Nash897 commented Aug 20, 2016

My name of the handler on console is es.handler.
With S3-Lambda-ES I am getting the following error

START RequestId: d6b5b2d1-672d-11e6-a9ef-1dccc79021cb Version: $LATEST
Unable to import module 'ES': Error at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/var/task/ES.js:19:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17)

I am clueless, any inputs will be appreciated.

@jkpindahbc
Copy link

After researching this further it appears that Lambda ignores the package.json file entry point declaration. The file with the entry point defined in the Lambda Configuration tab needs to be named index.js. So rename the s3_lambda_es.js to index.js and update the name in entry point of the package.json to index.js.

image

image

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

2 participants