brackets-sass
brackets-sass copied to clipboard
Undefined variable
I have this issue for some time.
I have a main.scss file including _variables.scss from 'helpers' folder and then some other partials. It compiles smoothly. But now I wanted main.scss to recompile after I save a partial. But it seems the partials do not recognize variables from the _variables.scss and throws an error
Undefined variable: "$heading-font", font-family:$heading-font.
{
"sass.enabled": false,
"path": {
"template-files/scss/main.scss": {
"sass.enabled": true,
"sass.options": {
"outputDir": "../css/",
"includePaths": ["template-files/scss/base","template-files/scss/colors", "template-files/scss/elements", "template-files/scss/helpers"],
"sourceComments": true,
"outputStyle": "nested"
}
}
}
}
any idea what could be the issue? Bogusz
Same thing happening. Any news on this?
Hello,
I have the same issue since yesterday afternoon while yesterday morning everything was fine for months. Now I have this error when I modify my partials files and if I . If I go back to my main.scss file and save it, the partials files are modify but I lost lot of time go saving my main.scss file.
On my main.scss file I only have some imports for my partials
@import "helpers/variables"; @import "vendors/bootstrap"; @import "base/reset"; @import "layout/header"; ...
Brackets SASS version : 2.0.5 Brackets : 1.14 macOS Catalina version 10.15.3
Could you please check this ?