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.
Problem A
The issue is that for some syntax reasons, stylus doesn't permit mixins alone in a selector
The solution(s)
is to use multi line
add a bogus property (make sure it doesn't affect your styling)
Problem B
Another issue was with reset styles, being without a new line between them.
The solution
To put each of the style on individual lines:
Very very weird issues and even weirder solution :P
Hope that this save some of your time (because I've wasted a lot of mine on this :( ).