Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
Description: Code was running smoothly on windows and ubuntu server with lower version. But when tested on Desktop Ubuntu there's always an error of SyntaxError: Unexpected token '?' when the library is imported.
Actual behavior
Throws an error SyntaxError: Unexpected token '?' when the library is imported
Expected behavior
It should not throw an error when imported
Code to reproduce
import Email from 'email-templates'
export default async function handler (req, res) {
res.send('ok')
}
Checklist
[x] I have searched through GitHub issues for similar issues.
[x] I have completely read through the README and documentation.
[x] I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
Describe the bug
Node.js version: v12.22.9
OS version: Ubuntu 22.04.1 LTS
Description: Code was running smoothly on windows and ubuntu server with lower version. But when tested on Desktop Ubuntu there's always an error of
SyntaxError: Unexpected token '?'
when the library is imported.Actual behavior
Throws an error
SyntaxError: Unexpected token '?'
when the library is importedExpected behavior
It should not throw an error when imported
Code to reproduce
Checklist