arithmetric / aws-lambda-ses-forwarder

Serverless email forwarding using AWS Lambda and SES
MIT License
1.7k stars 450 forks source link

Unable to import module 'index' #117

Closed RdL87 closed 4 years ago

RdL87 commented 4 years ago

Hi,

i always encounter this error when i trigger the function sending an email to the configured address.

Unable to import module 'index': Error at Module.require (module.js:596:17) at require (internal/module.js:11:18)

cregkly commented 4 years ago

The file isn't call module.js

It is index.js and the handler should be filename.function which in this case is index.handler

Does that help?

arithmetric commented 4 years ago

Hi @RdL87, we would need more information on how you are using the script to help out. I'm closing this issue until it is clear on how to reproduce it.