Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass error on compilation NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace

Suddenly while working on a project, the following error came up. How to resolve the below error that comes up while doing:

sass --watch foundation.scss:../css/foundation.css --line-numbers

Error:

NoMethodError: undefined method `count' for nil:NilClass
Use --trace for backtrace.

Sass compile was working till about a minute back

like image 853
Vinay Raghu Avatar asked Feb 15 '26 09:02

Vinay Raghu


1 Answers

Seems like it was an issue with MY Sass code. I had some IE filters for gradient that was not coded properly. This is usually an issue with YOUR code and not with Sass or the compiler compiler or at some higher level with respect to ruby. Check your code for recent changes that might have some non-standard workarounds, especially for IE

like image 109
Vinay Raghu Avatar answered Feb 21 '26 15:02

Vinay Raghu