css - Rails 5, Sass::SyntaxError cannot precompile assets -


i have started new project (rails 5.0.0.1 && ruby 2.3.1p112 ) , can't seem assets precompile. current structure looks this.

app/assets/config/manifest.js

//= link_tree ../images //= link_directory ../javascripts .js //= link_directory ../stylesheets .css 

app/assets/stylesheets/application.scss

* *= require_tree . *= require font-awesome *= require style *= require_self */ 

app/assets/stylesheets/style.scss

@import "bootstrap-sprockets"; @import "bootstrap";  // shared styling @import 'shared/variables'; @import 'shared/content'; ... ... 

app/views/layout/application.html.haml

... = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' ... 

inside app/assets/stylesheets/helpers/_varibles.scss file have set varibles

$font-family-standard: 'arial', sans-serif; $font-family-default: 'open sans', 'arial', sans-serif;  $color-primary: #ff7e5b; $color-gray: #898989; $color-dark: #292c33; $color-darker: #3f4248; 

but when run rails server / try running bundle exec rake assets:precompile this:

be rake assets:precompile rake aborted! sass::syntaxerror: undefined variable: "$color-dark". /users/nexus/personal/projects/rubyfuza/rubyfuza/app/assets/stylesheets/helpers/_content.scss:3 /users/nexus/.rbenv/versions/2.3.1/bin/bundle:23:in `load' /users/nexus/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>' tasks: top => assets:precompile (see full trace running task --trace) 

i have no idea going on here. appreciated.

you using $color-dark variable in app/assets/stylesheets/helpers/_content.scss:3 not defined

you need import in _content.scss

@import 'shared/variables' 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -