mulyoved
10/19/2017, 10:00 AM"logs":["START RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58 Version: $LATEST
Unable to import module 'src\\sendmail\\sendEmail-lambda': Error
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
END RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58
REPORT RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58\tDuration: 1.42 ms\tBilled Duration: 100 ms \tMemory Size: 512 MB\tMax Memory Used: 20 MB\t
"],"returnValue":{"errorMessage":"Cannot find module '/var/task/src\\sendmail\\sendEmail-lambda'","errorType":"Error","stackTrace":["Module.require (module.js:497:17)","require (internal/module.js:20:19)"]}}
any idea?mulyoved
10/19/2017, 11:43 AMmodule.exports = event => {
return { error: `empty function body` };
};
and I still get the error, so engine does not find the function and not a problem in the function code
not sure why it look for
"Cannot find module '/var/task/src\\sendmail\\sendEmail-lambda'"
code is in ./src/sendmail/sendEmai.js
nilan
10/19/2017, 12:15 PMmulyoved
10/19/2017, 2:13 PMgraphcool/0.8.0-alpha.9 (windows-x64) node-v8.6.0
still get error
"logs":["START RequestId: 7e9c24fa-b4d7-11e7-a96b-cf5634e5a1c4 Version: $LATEST\nUnable to import module 'src\\sendmail\\sendEmail-lambda': Error\n at Function.Module._resolveFilename (module.js:469:15)\n at Function.Module._load (module.js:417:25)\n at Module.require (module.js:497:17)\n at require (internal/module.js:20:19)\nEND RequestId: 7e9c24fa-b4d7-11e7-a96b-cf5634e5a1c4\nREPORT RequestId: 7e9c24fa-b4d7-11e7-a96b-cf5634e5a1c4\tDuration: 52.92 ms\tBilled Duration: 100 ms \tMemory Size: 512 MB\tMax Memory Used: 20 MB\t\n"],"returnValue":{"errorMessage":"Cannot find module '/var/task/src\\sendmail\\sendEmail-lambda'","errorType":"Error","stackTrace":["Function.Module._load (module.js:417:25)","Module.require (module.js:497:17)","require (internal/module.js:20:19)"]}}
mulyoved
10/19/2017, 2:13 PM