Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This means that your IDE has created an index of all the project's code. And I found the declaration of this variable in this code. That is, you declared it somewhere in another file.
But the IDE cannot guarantee that you have included this file, so it warns.
Storm is not able to fully parse all imports nested in files and looks only at what is explicitly included in the current sass file.
As a rule, I turn off this inspection so that it does not hurt my eyes.
If it doesn't compile for you, then you didn't include the required file.
For example you have
.block {
background: $myVariable;
}
@import 'settings.scss';
@import 'block.scss';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question