libsass icon indicating copy to clipboard operation
libsass copied to clipboard

Error: media query expression must begin with '('

Open Taritsyn opened this issue 6 years ago • 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.

Taritsyn avatar Apr 24 '18 18:04 Taritsyn

This appears to be related to https://github.com/sass/libsass/issues/2637

xzyfer avatar Apr 25 '18 03:04 xzyfer

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.

xzyfer avatar Apr 25 '18 05:04 xzyfer

This error is again relevant in version 3.6.0.

Taritsyn avatar May 19 '19 18:05 Taritsyn

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

Taritsyn avatar Jun 25 '19 15:06 Taritsyn