Toni Michel Caubet
Toni Michel Caubet

Reputation: 20183

Sass won't compile because of an "invisible" error

I am implementing compass to a already existing project which 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?

enter image description 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 "")

Upvotes: 2

Views: 578

Answers (1)

cimmanon
cimmanon

Reputation: 68349

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).

Upvotes: 2

Related Questions