Answer the question
In order to leave comments, you need to log in
How to solve import problem in less?
There is such a design. Variables are taken from the included file.
@import "@{helpers-folder}/normalize.css";
@import "@{helpers-folder}/mixins.less";
NameError: variable @helpers-folder is undefined in
Answer the question
In order to leave comments, you need to log in
And if the variable is set like this:
And the import is like this:
@import url(~"@{helpers-folder}/normalize.less");
@import url(~"@{helpers-folder}/mixins.less");
Did a similar situation on grunt'e - everything worked. Try a different compiler. Koala sometimes gave out strange errors too (I don’t remember now). Switched to grunt and no problems.
Moreover, in the docks there is an example:
// Variables
@themes: "../../src/themes";
// Usage
@import "@{themes}/tidal-wave.less";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question