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

Claudiu picture Claudiu · Sep 7, 2013 · Viewed 11.9k times · Source

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.

Answer

Garrett picture Garrett · May 20, 2014

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.