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
- Added node v6.4.0+ support per https://github.com/niftylettuce/email-templates/issues/247 — committed to forwardemail/test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript by niftylettuce 7 years ago
- Added node v6.4.0+ support per https://github.com/niftylettuce/email-templates/issues/247 — committed to ladjs/i18n by niftylettuce 7 years ago
- Added Node v6.4.0+ support per #247 — committed to forwardemail/email-templates by niftylettuce 7 years ago
glad to hear. thank you
On Mon, Oct 23, 2017 at 6:50 PM, darbio notifications@github.com wrote:
– @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.