compass sass - @import line expected selector or at-rule, but not because of missing semicolon -
i have compass error
line 3: invalid css after "@charset "utf-8"": expected selector or at-rule, "@import 'compass';")
the file following. not contain of own code
@charset "utf-8" @import 'compass';
i know people error occurs when the @import
line misses semicolon, file has semicolon.
and same files (scss , config.rb) can compiled in linux no problems.
does know wrong?
the configuration gives error is
- windows 8.1
- ruby 2.1.6p336 (2015-04-13 revision 50298) [i386-mingw32]
- compass 1.0.3 (polaris)
- sass 3.4.16 (selective steve)
i tried many combinations
(1) ------------------- @import 'compass'; ------------------- // line, no @charset line. // result: compilation ok, need charset because // comments (yes comments) have utf8 chars.
(2) ------------------- @charset "utf-8"; @import 'compass'; ------------------- // semicolon after @charset // result: compilation error: // invalid cp950 character "\xe2" // because @charset line unrecognised
(3) // add config.rb encoding.default_external = 'utf-8' // https://stackoverflow.com/a/23338595/2841279 // http://blog.pixelastic.com/2014/09/06/compass-utf-8-encoding-on-windows/ // result: compilation error: expected selector or // at-rule, "@import 'compass';
(4) // add config.rb encoding = "utf-8" // https://stackoverflow.com/a/13987672/2841279 // result: compilation error: expected selector or // at-rule, "@import 'compass';
Comments
Post a Comment