I
I
Ilya Molchanov2016-12-05 20:50:28
Sass
Ilya Molchanov, 2016-12-05 20:50:28

Gulp-sass error: Mixins may not be defined within control directives or other mixins. How to fix it?

Good evening, the company downloaded a ready-made theme for the site with sources in the \scss folder, I downloaded this thing for myself and ran the gulp build task. But nothing compiles with one error:
Message:
sass\custom\mixins\_icons.scss
Error: Mixins may not be defined within control directives or other mixins.
on line 7 of sass/custom/mixins/_icons.scss
>> @mixin size-conversion($size-ratio) {
--^
fb8ee273cd9b47d0a9b89b9dec628070.png
Accordingly, there is a lot of code where the mixin is in the mixin. How to compile it? Somehow it was compiled from these sources by the one who made the final style.css. What should I do? try Grunt? Help, please, in which direction to dig,

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OXAYAZA, 2017-01-29
@OXAYAZA

Necroresponse.
In theory, Node-sass allows you to use a mixin in a mixin. If you use Prepros then everything will compile
https://prepros.io/downloads

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question