New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEPRECATION WARNING: Passing null, a non-string value, to unquote() will be an error in future versions of Sass #425
Comments
I can't recreate this with the information given. Also, looking at the Susy code: there is no mention of |
It looks like I had to dig quite a bit deeper. It appears to be a problem with compass. (Sorry, forgot to mention I'm using compass 1.0.3. I did the old trial and error and commented things out until I narrowed down what was causing it to spit the warning out. Eventually I got to Susy's box sizing mixin. (susy-2.2.2/sass/susy/ouput/support/_box-sizing.scss It checks for existing support of a box-sizing mixin. Compass's box-sizing mixin is probably the first thing it finds. Compass's box-sizing mixin:
And there's the unquote(). I guess this will have to be brought up with guys over at compass. Thanks, been using susy for a while now, it's awesome :D EDIT: Just for clarification on the trace path, and the mixins I went through. File: _span.scss, File: _output.scss File: _support.scss File: _box_sizing.scss (in support folder) ..then the compass mixin.. |
Same here, the issue disappeared when I overwrote Compass box-sizing mixin. Thanks, you saved me from a debugging headache (since the error message does not provide any details, such as line number)! |
Thanks for the confirmation, just curious what you changed the box-sizing code to? |
I think what he means by overwrote is overload the box-sizing mixin and write it like the following: @mixin box-sizing($box-model: $default-box-sizing) { I did a test on one of my project and the warnings were all gone. Obviously instead of using the compass box-sizing mixin, it will use the above mixin. |
Here is a better way of overloading the box-sizing mixin: @mixin box-sizing($box-model: $default-box-sizing) { I did refactoring on $box-model so that if its a string then it will use unquote otherwise it will ignore it. |
I also get the Deprecation Warning. I am not using the mixin box-sizing in my project, but the warning makes reference to it:
How can I fix it. Because I am not using the box-sizing mixin in the project, I can't follow the solutions posted above in this thread. |
Certain Susy features require changes to box-sizing, and use the compass mixin by default if it's available. You can turn that off in you Susy settings (see custom box-sizing in the docs). $susy: (
use-custom: (
box-sizing: false,
),
); |
I also want to note that the order of import is seems to be important.
it will not show the deprecation warning. |
@mvjoyner: Sorry, I've missed the notification! I kept it very simple:
Deprecation warning went away and overwritten mixin worked as expected. |
Awesome, thanks everyone! |
added mixin to deal[C with error oddbird/susy#425 and there is also Compass/compass#1924 widget hover green
Since Sass 3.4.10 in their change log:
http://sass-lang.com/documentation/file.SASS_CHANGELOG.html
"Passing a non-string value to the unquote() function didn’t do anything useful and is now deprecated. In future, this function will follow its documentation and emit an error if a non-string value is passed."
When using Susy's "@include span()" mixin, sass reports the Deprecation Warning.
Using Susy 2.2.1, Sass 3.4.10.
I don't fully understand why the error(warning - future error) is occurring, but I thought I might just mention it.
The text was updated successfully, but these errors were encountered: