K
K
Klim1612019-10-15 16:33:37
css
Klim161, 2019-10-15 16:33:37

SCSS does not compile to CSS. Which compiler is better to use?

Good afternoon! When compiling a file from SCSS to CSS, the following error occurs:
* Error: Undefined variable.
* ,
* 9 | color: $c-text;
* | ^^^^^^^
* '
* ..\..\alyonka\scss\general.scss 9:10 root stylesheet */. Used node js console, also tried koala. What could be the problem, where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
igumenov, 2019-10-17
@igumenov

If the project consists of 1 scss file, then simply declare the $c-text variable somewhere at the top. If Dmitrijs Balcers
comes from several files, then the included files must be named with "_" (_header.scss, _footer.scss) in order for the variables to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question