.virtualenvs/project/lib/python2.7/site-packages/scss/types.py", line 563, in __init__ raise TypeError("Expected a Sass type, got %r" % (item,)) TypeError: Expected a Sass type, got 'article'
Drilling into the source code a bit shows that we are passing a list of normal python strings to the List constructor and it expects a list of Values. All I'm doing is converting all of those CSS elements into Strings before they get passed to the constructor which fixes the issue for me.
Using django-pipeline with Compass I do
which gives me a big fancy error message
eventually ending in
Drilling into the source code a bit shows that we are passing a list of normal python strings to the
List
constructor and it expects a list ofValue
s. All I'm doing is converting all of those CSS elements intoString
s before they get passed to the constructor which fixes the issue for me.