Closed janosrusiczki closed 7 years ago
OK, solved it myself. Cloned the gem, ran the tests of which 4 failed, uncommented the puts with the mjml command that is run and drilled it down to something like:
# mjml -r test.mjml
Error: EISDIR: illegal operation on a directory, open './/'
at Error (native)
Which I found to be an error related to my Node.js version. I incorrectly assumed from this tutorial that all is OK with Node.js 5. Turns out it wasn't, you need at least version 6.
@kitsched ah yes - I just found out through a breaking Jenkins test that it was using Node.js 5, and so I upgraded to Node.js 7 and that seemed to fix that too.
Whatever I do MJML-s won't render from Rails.
Ruby 2.3.0 Rails 4.2.4 MJML 3.3.0 mjml-rails 2.4.1
My mailer:
My view:
In the console I go:
As you can see the HTML output doesn't appear.
If from the command line I do:
It renders the HTML without problems.
I'm out of ideas.