Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

rake aborted! Sass::SyntaxError: Undefined variable: "$c_blue". (Only in production) #118

Open
vike27 opened this issue Jun 30, 2014 · 3 comments

Comments

@vike27
Copy link

vike27 commented Jun 30, 2014

Everything works fine in development but when I run git push heroku master I get the following error:

''' rake aborted!
Sass::SyntaxError: Undefined variable: "$c_blue".
(in /tmp/build_8b4936d4-2a77-430f-a5d6-0aaaae349c2c/app/assets/stylesheets/spree/fancy/shared
/_layout.scss:2)
/tmp/build_8b4936d4-2a77-430f-a5d6-0aaaae349c2c/app/assets/stylesheets/spree/fancy/shared/_la
yout.scss:2'''

I am not sure why this is happening since spree_fancy has the variable defined in the variable.css.scss file. The files are being imported properly as far as I can see.. What might be the issue?

I get the same error when running bundle exec rake assets:precompile RAILS_ENV=production

'''rake aborted!
Sass::SyntaxError: Undefined variable: "$c_blue".
(in c:/Users/Javi/Desktop/rails_projects/surplusmerchant2/app/assets/stylesheets/spree/fancy/share
d/_layout.scss:2)
c:/Users/Javi/Desktop/rails_projects/surplusmerchant2/app/assets/stylesheets/spree/fancy/shared/_lay
out.scss:2
Tasks: TOP => assets:precompile'''

Here is my Gemfile.lock in a gist https://gist.github.com/vike27/fa6e65d28098037b6181

Here is my Gemfile in a gist https://gist.github.com/vike27/017214ea8458495467aa

This is the trace after running git push heroku master: https://gist.github.com/vike27/e20894f45762dd18b7d2

This is the trace after running bundle exec rake assets:precompile RAILS_ENV=production : https://gist.github.com/vike27/a66e16fc76956d100e67

@radar
Copy link
Contributor

radar commented Jun 30, 2014

Hi @vike27, please provide the information we ask for in the Contributing Guidelines.

Thanks!

@vike27
Copy link
Author

vike27 commented Jul 4, 2014

@radar I've updated the issue with the information you requested, still haven't been able to solve this...

@vike27
Copy link
Author

vike27 commented Jul 17, 2014

Someone solved it here:

http://stackoverflow.com/questions/24500192/rake-aborted-sasssyntaxerror-undefined-variable-c-blue

Replacing *= require_tree . with *= require ./spree/fancy in the application.css file seemed to work.

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

No branches or pull requests

2 participants