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

Gem Load Error on Heroku review app #15

Closed
sianglim opened this issue Feb 10, 2017 · 2 comments
Closed

Gem Load Error on Heroku review app #15

sianglim opened this issue Feb 10, 2017 · 2 comments

Comments

@sianglim
Copy link

Hi @sighmon,

I'm having an issue when deploying a branch to Heroku's review apps.

The key errors I see are:
Bundler::GemRequireError: There was an error while trying to load the gem 'mjml-rails'
Gem Load Error is: undefined method chomp' for nil:NilClass NoMethodError: undefined method chomp' for nil:NilClass /tmp/.../.../vendor/bundle/ruby/2.1.0/gems/mjml-rails-2.4.1/lib/mjml.rb:25:in discover_mjml_bin'

I've set heroku to run the nodejs buildpack first.

On the CI platform, I have npm install as the first build instruction, but it feels like it's not triggering it. The strange thing is that it works on production.

Hope you can point out where I'm going wrong. 😃

@sighmon
Copy link
Owner

sighmon commented Feb 11, 2017

@sianglim Are you sure npm is installing okay? Because npm bin is returning nil, which is why chomp is failing. So perhaps try some logging to see if any basic npm commands are running.

@sianglim
Copy link
Author

Thanks for taking the time to look into this @sighmon.

It turns out that heroku's app.json didn't have the nodejs buildpack added.

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

2 participants