Sass error on compilation NoMethodError: undefined

2019-02-18 22:18发布

问题:

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

回答1:

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