email-templates: SyntaxError: Unexpected token

When i try to use your module, I get the following error: node_modules/email-templates/index.js:86 return new Promise(async (resolve, reject) => { ^ SyntaxError: Unexpected token (

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 21

Commits related to this issue

Most upvoted comments

glad to hear. thank you

On Mon, Oct 23, 2017 at 6:50 PM, darbio notifications@github.com wrote:

@niftylettuce https://github.com/niftylettuce I’ve tested this on AWS lambda and it now works in that environment (node 6.10). Thanks for implementing this!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/niftylettuce/email-templates/issues/247#issuecomment-338819331, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf7heM3qZwOw1ekKWejsufBetCegDvXks5svRgpgaJpZM4Pxrvy .

@niftylettuce

@atomdmac You need the latest version of 7.x. 7.10.1 for example should work.

This is b/c this package uses async/await http://node.green/#ES2017-features-async-functions-await and your version does not support it.