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

送分小仙女□ 提交于 2019-12-01 07:01:23

问题


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



来源:https://stackoverflow.com/questions/18852946/sass-error-on-compilation-nomethoderror-undefined-method-count-for-nilnilcla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!