0

I am observing the following error while running my localhost - NoMethodError

Upon searching the problem, I identified it could be due to the SASS & Coffee gems listed in my gem file as shown below:

gem 'sass-rails', '4.0.0'
gem 'coffee-rails', '4.0.0'

By disabling them, I ran bundle update successfully and restarted the rails server. However, I am still seeing the same error.

Can anyone please advise?

Community
  • 1
  • 1
fr_muses
  • 1,475
  • 2
  • 10
  • 10
  • It seems that this Q/A is similar to yours : http://stackoverflow.com/questions/22392862/undefined-method-environment-for-nilnilclass-when-importing-bootstrap – jiop Apr 08 '14 at 09:02
  • @JérémieOnRails, I have already checked the solution and applied it as per my description in the question. This hasn't helped. – fr_muses Apr 08 '14 at 09:13
  • Looks like it could be inside your `application.css.sass`? Have you got anything in there which could be causing a problem? – Richard Peck Apr 08 '14 at 09:22
  • @RichPeck, the only line in my `application.css.sass` is `@import 'custom'`. Nothing else. – fr_muses Apr 08 '14 at 10:33
  • Have you tried without that line? – Richard Peck Apr 08 '14 at 10:34
  • @RichPeck, yes. I have tried without the line and it works. But the CSS styling does not take into effect. I am trying to understand as to why this is causing an issue. None of my other collaborators seem to be having this issue. – fr_muses Apr 09 '14 at 00:55
  • @RichPeck, in addition to that, I also tried updating the 'sass-rails', 'coffee-rails' and 'sprockets-rails' gems to ensure there was no compatibility issue and I received the following errors: [NoMethodError](https://www.dropbox.com/sh/et6obewtvqbet1x/4ZSwOdnmXH). – fr_muses Apr 09 '14 at 01:16
  • Hi Everyone, looks like the problem got fixed by limiting the sprockets gem to 2.11.0. Not sure why it did not work previously, but it seems fine now. – fr_muses Apr 18 '14 at 16:43

0 Answers0