forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.67k stars 337 forks source link

Unable to use sass/scss/styl for styling #236

Closed animeshsinghweb closed 7 years ago

animeshsinghweb commented 7 years ago

I am able to use the simple .css but when I use .scss/.sass/.styl terminal throws me an error: TypeError: Cannot read property 'getters' of undefined.

My file structure:

.
|____xxx
| |____xxxx.pug
|____email-templates
| |____confirm-email
| | |____html.pug
| | |____style.sass

I had tried scss/styl but only simple css works.

I am using simple express routes to check if it works:

      newsletter.render(user, function (err, result) {
        if (err)
          console.log('Error while renderning confirmation newsletter: ', err);

        // result.html
        console.log('user: ', user);

        console.log(result);

        res.send(result.html);

        // result.text
      })

Help Please?

animeshsinghweb commented 7 years ago

It's seems working for some reason now, don't know what was the bug, maybe there was some glitch in my code which was causing it. scss is working fine, hadn't tested less/stylus now. Therefore, closing, for now.