Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve less variables within @import statement #19

Open
sampology opened this issue May 24, 2016 · 1 comment
Open

Cannot resolve less variables within @import statement #19

sampology opened this issue May 24, 2016 · 1 comment

Comments

@sampology
Copy link

Use case: Semantic-UI
Variables defined in theme.less file and referenced in @import are not resolved:

Error: Async fragment failed (lasso-slot:head). Exception: Error: Error while writing bundle "login/lasso-less (head, css)" Error: Error: ENOENT: no such file or directory, open '/home/www/xxx/semantic/src/@{themesFolder}/default/globals/site.variables'

Also, I believe variables defined in theme.config(.example) and passed to theme.less are also not being resolved.

/* Path to theme packages */
@themesFolder : 'themes';

/* Path to site override folder */
@siteFolder  : 'site';


/*******************************
         Import Theme
*******************************/

@import "theme.less";
@Mrtenz
Copy link

Mrtenz commented Oct 22, 2017

Seems that it cannot handle @imports that do not specify a file extension. Importing default/globals/variables does not work, but default/globals/variables.less does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants