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

Undefined variable when building Bootstrap 5.3.2 #186

Open
iggyzuk opened this issue Nov 7, 2023 · 1 comment
Open

Undefined variable when building Bootstrap 5.3.2 #186

iggyzuk opened this issue Nov 7, 2023 · 1 comment

Comments

@iggyzuk
Copy link

iggyzuk commented Nov 7, 2023

Trying to build sass for bootstrap-5.3.2 and I get an error. Looks to me like a circular issue: _variables.scss and _functions.scss depend on each other.

Command

rsass bootstrap.scss

Error

rsass bootstrap.scss
Error: Undefined variable.
    ,
153 | @function color-contrast($background, $color-contrast-dark: $color-contrast-dark, $color-contrast-light: $color-contrast-light, $min-contrast-ratio: $min-contrast-ratio) {
    |                                                             ^^^^^^^^^^^^^^^^^^^^
    '
    _functions.scss 153:61  @import
    bootstrap.scss 7:9      root stylesheet
@kaj
Copy link
Owner

kaj commented Nov 11, 2023

Bootstrap is not expected to work yet, as it uses @extend which is not supported by rsass yet. I think rsass should handle circular dependencies as well as other sass implementations, but there is some stuff with setting default variables that might cause this.

As long as the trigger is bootstrap though, I probably won't actively search for fix until after I have implemented @extend, so there is at least some hope for rsass to build bootstrap.

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