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

Asset Precompilation for Production ENV #24

Closed
kengreeff opened this issue Dec 24, 2015 · 10 comments
Closed

Asset Precompilation for Production ENV #24

kengreeff opened this issue Dec 24, 2015 · 10 comments

Comments

@kengreeff
Copy link

When deploying to production rake is aborting. Do you have any ideas as to why this is happening?

RAILS_ENV=production rake assets:precompile --trace
rake aborted!
NoMethodError: undefined method `resolve' for nil:NilClass
/Users/kgreeff/.rvm/gems/ruby-2.2.2/gems/react-router-rails-0.13.3.2/lib/react/router/rails/railtie.rb:11:in `block in <class:Railtie>'
@kengreeff
Copy link
Author

Could maybe be linked to this:

rails/sprockets-rails#237

@gmahajan31
Copy link

I am also running into this error. Any solution yet?

@kengreeff
Copy link
Author

I just set my gem file to use the older version of sprockets:

gem 'sprockets', '3.2'

Working in the meantime.

@dyakubovich
Copy link

This solution is not help me. Any solution yet?

@dyakubovich
Copy link

I set my gem file to use this version of sprockets:

gem 'sprockets', '2.9'

It working for me.

@cimm
Copy link

cimm commented Sep 22, 2016

Trying to update Rails to fix an XSS vulnerability but failing to deploy as react-router-rails is not compatible with the latests react-rails: version 1.8.2. Any plans to update this gem so I can run with the latest and greatest? I still get the same error when pointing my Gemfile to 3681fbb.

@phthhieu
Copy link

follow up @kubaaa answer:

  • add gem 'sprockets', '2.9' to your gemfile
  • run bundle update
  • deploy again!

@cimm
Copy link

cimm commented Sep 22, 2016

@phthhieu Thanks but downgrading Sprockets is not an option, other gems depend on a > 3 Sprockets version. Any idea how to fix react-router-rails so it works with newer Sprockets version?

@rubydog
Copy link

rubydog commented Nov 17, 2016

Anybody got this working? I'm using Rails 5.

@jacklin10
Copy link

I'm having this same issue. Downgrading sprockets didn't work for me either.
Looks like the last release for this gem was 2015. Is it still being maintained?

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

8 participants