Hi, trying <https://github.com/graphcool/templates...
# prisma-whats-new
m
Hi, trying https://github.com/graphcool/templates/tree/master/messaging/sendgrid example added to package.json "sendgrid": "^5.2.3" when try the sample in the playground, node created but email was not sent, function log say
Copy code
"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?
my function now is only
Copy code
module.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
Copy code
"Cannot find module '/var/task/src\\sendmail\\sendEmail-lambda'"
code is in
./src/sendmail/sendEmai.js
n
sounds similar to this, can you confirm that this is the same: https://github.com/graphcool/graphcool/issues/836?
m
no solved using
graphcool/0.8.0-alpha.9 (windows-x64) node-v8.6.0
still get error
Copy code
"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)"]}}
I am on Windows