-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I get a syntax error when I try to use html in my email component.
const notificationEmail = ({ title, message }) => ({ subject: ${title}, html: ( <div> <p> {message}</p> </div> ) })
throws this error.
SyntaxError: Unexpected token '<' at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18) at ESMLoader.moduleProvider (node:internal/modules/esm/loader:475:14) [nodemon] app crashed - waiting for file changes before starting...
Running from a windows env
PS C:\Projects\support\appsupp\server> node -v
v16.17.1
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels