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

Assets:precompile error: rake aborted! Undefined variable: "$c_blue" #5017

Closed
louisscruz opened this issue Jul 19, 2014 · 2 comments
Closed

Comments

@louisscruz
Copy link

When I precompile my assets using RAILS_ENV=production bundle exec rake assets:precompile or bundle exec rake assets:precompile, I get the following error:

rake aborted!
Sass::SyntaxError: Undefined variable: "$c_blue".
  (in /Users/louisstephancruz/loosecanon/app/assets/stylesheets/spree/fancy/components/_navigation.scss:6)
/Users/louisstephancruz/loosecanon/app/assets/stylesheets/spree/fancy/components/_navigation.scss:6
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/script/variable.rb:49:in `_perform'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/script/list.rb:71:in `block in _perform'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/script/list.rb:71:in `map'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/script/list.rb:71:in `_perform'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:298:in `visit_prop'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `map'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:320:in `visit_rule'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `map'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:128:in `visit_root'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:7:in `visit'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/tree/root_node.rb:20:in `render'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/engine.rb:315:in `_render'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/engine.rb:262:in `render'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/compass-rails-2.0.0/lib/compass-rails/patches/sass_importer.rb:29:in `evaluate'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/context.rb:197:in `block in evaluate'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `each'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `evaluate'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:12:in `initialize'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `new'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `block in build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:395:in `circular_call_protection'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:373:in `build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:105:in `each'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:105:in `resolve_dependencies'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:97:in `build_required_assets'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:16:in `initialize'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `new'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `block in build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:395:in `circular_call_protection'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:373:in `build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/bundled_asset.rb:16:in `initialize'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:377:in `new'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:377:in `build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:211:in `block in find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:257:in `benchmark'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:210:in `find_asset'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:119:in `block in compile'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `each'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `compile'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-2.11.0/lib/rake/sprocketstask.rb:146:in `with_logger'
/Users/louisstephancruz/.rvm/gems/ruby-2.1.2/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
Tasks: TOP => assets:precompile

Here's my Gemfile:

https://gist.github.com/louisscruz/a5415ec6b5135092ca46

My Gemfile.lock:

https://gist.github.com/louisscruz/07cfa7903acbf62a05bd

And my fancy.scss:

https://gist.github.com/louisscruz/4bfea321efa545ee6e9a

@louisscruz
Copy link
Author

I've tried the following solution (*= require ./spree/fancy), but no luck:

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

@huoxito
Copy link
Member

huoxito commented Jul 23, 2014

hey @louisscruz sorry but this seems to be a spree_fancy issue, let's keep the discussion there see spree-contrib/spree_fancy#118

@huoxito huoxito closed this as completed Jul 23, 2014
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