Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I get "EOS" error with stylus when compiling with grunt-contrib-stylus

I keep getting this weird error message when compiling. Very hard to debug. (By the way: opacity in the example is a mixin)

But I'm stuck on

> 59| .red { opacity 0.4 }

expected "indent", got "eos"

I've tried

.red { opacity(0.4) }
.red { opacity(0.4); }

and nothing.

like image 639
Claudiu Avatar asked Sep 07 '13 20:09

Claudiu


1 Answers

I've also found that you can get this error if you mix spaces and tabs. It's a strange error to get for this issue. Just make sure that you stick with one or the other.

like image 78
Garrett Avatar answered Sep 27 '22 02:09

Garrett