Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find the MJML 4.0. binary #35

Closed
joeczucha opened this issue Jul 12, 2018 · 1 comment
Closed

Couldn't find the MJML 4.0. binary #35

joeczucha opened this issue Jul 12, 2018 · 1 comment

Comments

@joeczucha
Copy link

Hi folks,

I'm having a bit of trouble getting the library to detect my MJML 4.0. binary. I installed MJML globally, using Yarn and I am using gem 'mjml-rails', '~> 4.0.0'

$ mjml -V
mjml-core: 4.1.0
mjml-cli: 4.1.0

$ which mjml
/usr/local/bin/mjml

$ rails c
Running via Spring preloader in process 24555
Loading development environment (Rails 5.1.3)
[1] pry(main)> Mjml.discover_mjml_bin
Couldn't find the MJML 4.0. binary.. have you run $ npm install mjml?
=> nil

Do I need to add some additional config?

Thanks,

Joe

@joeczucha
Copy link
Author

Ah, just like that I solved my own issue 👍

For future Googlers: you should ensure that the gem version matches the mjml version. In my case, I should have been using: gem 'mjml-rails', '~> 4.1.0'

All working now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant