1
1
16493102019-01-30 01:04:07
Sass
1649310, 2019-01-30 01:04:07

Gulp won't run says there is no mixin with that name?

Help, what is the problem -
1. gulp does not start, it says that there is no mixin with that name ... 5c50cb47790b1780088425.png
2. problem with variables in the file there is no such variable ...
5c50cdc11edc9925454929.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2019-01-30
@1649310

Look carefully at the first screen, in the terminal, then at the second screen, there. Find the difference.
The difference is that in the second case, the scss-file call stack is indicated in the error, but not in the first case. What follows from this? Elementary -- you compile header.scss separately . You do not include anything in it, this is normal, everything is included in style.scss, but the file itself will not compile separately.
1. It is customary to name the included parts of styles with an initial underscore
2. Files with an initial underscore must be excluded, not passed to the input of the galp.
In the second case xs, well, you probably don’t have such a variable, create it.

M
Mikhail Vlasov, 2019-01-30
@storm_uk

1. In style.scss, when including the mixin, try to remove the underscore on the 3rd line
2. There really is no such variable with that name on the 15th line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question