Sass won't compile because of an “invisible” e

2020-02-07 05:08发布

问题:

I am implementing compass to a already existing project wich has a CSS with over 3800 lines,

This is the error it fires:

>>> Change detected at 19:47:43 to: style.scss
    error sass/style.scss (Line 3807: Invalid CSS after "​": expected "{", was "")
overwrite css/style.css

This is from line 3800:

.shake:hover {
    display:block;
    position:relative;

}
.shake.inline{
    display:inline-block 
}

Any idea of what am I missing here?

​-sassbin-

http://sassbin.com/gist/7324262/

-EDIT-

By removing all whitespaces:

line 3800:

.shake:hover {display:block;position:relative;}.shake.inline{display:inline-block;}​

Error changed to:

overwrite css/style.css 
>>> Change detected at 20:11:12 to: style.scss
    error sass/style.scss (Line 3800: Invalid CSS after "...line-block;}​": expected "{", was "")

回答1:

If you look at your sassbin, it is actually showing you where the problem is. There is a hidden character after the last closing curly brace, and it happens to look like a space or newline (sassbin displays it as a middot).



标签: sass