sass/libsass

Error: media query expression must begin with '('

Opened this issue · 4 comments

Problem appeared after upgrading to version 3.5.3.

input.sass

@import "folder/FolderIcon.css" screen, projection

Actual results

The following error occurs:

Error: media query expression must begin with '('
        on line 1 of ../../../../SharedFiles/import/sass/input.sass
>> @import "folder/FolderIcon.css" screen, "projection";

   ---------------------------------------^

This error is typical only for indented syntax.

Expected result

@import "folder/FolderIcon.css" screen, projection;

P.S.: I use the sass_option_push_import_extension to add an .css extension.

This appears to be related to #2637

As a work around I've released 3.5.4 which the sass2scss bump reverted since we need to get the node-sass release out.

This error is again relevant in version 3.6.0.

I created the PR with fixes for this error in the sass2scss repository.