Closed dottodot closed 7 years ago
I've required using
const EmailTemplate = require('email-templates').EmailTemplate;
and the following
const template = new EmailTemplate('email_templates/my_template');
gives an error of
EmailTemplate is not a constructor
v2.7.1 doesn't have this issue but I've not tried anything in-between that release and the latest one.
Read the documentation please, v3 has a different API than v2.
@dottodot did you see https://github.com/niftylettuce/email-templates#v3-breaking-changes yet?
Yes sorry got it working now thanks.
I've required using
and the following
gives an error of
v2.7.1 doesn't have this issue but I've not tried anything in-between that release and the latest one.