Closed ghost closed 4 years ago
in my application.scss $global: 1px; @import "test" and in _test.scss h1 { font-size: $global; }
$global: 1px; @import "test"
h1 { font-size: $global; }
$ rake assets:precompile rake aborted! SassC::SyntaxError: Error: Undefined variable: "$global". on line 2:16 of app/assets/stylesheets/_test.scss
font-size: $global;
---------------^
anyone knows why...?
@kuyenda I'm getting a similar error. How did you manage to solve it? Thanks in advance!
in my application.scss
$global: 1px; @import "test"
and in _test.scssh1 { font-size: $global; }
$ rake assets:precompile rake aborted! SassC::SyntaxError: Error: Undefined variable: "$global". on line 2:16 of app/assets/stylesheets/_test.scss
---------------^
anyone knows why...?