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
Problem since 1.40.0 with bootstrap 5 #1496
Comments
Same here. Encapsulating the negative number in parenthesis as follows and everything works fine. Original
Changed to
|
I can't reproduce this with Dart Sass 1.42.0: a {
$variable-prefix: foo-;
margin-top: calc(var(--#{$variable-prefix}gutter-y) * -1); // stylelint-disable-line function-disallowed-list
margin-right: calc(var(--#{$variable-prefix}gutter-x) * -.5); // stylelint-disable-line function-disallowed-list
margin-left: calc(var(--#{$variable-prefix}gutter-x) * -.5); // stylelint-disable-line function-disallowed-list
} This produces: a {
margin-top: calc(var(--foo-gutter-y) * -1);
margin-right: calc(var(--foo-gutter-x) * -0.5);
margin-left: calc(var(--foo-gutter-x) * -0.5);
} as expected. What version of Sass are you using? Can you provide a minimal stylesheet that reproduces the issue? |
Hello @nex3 For my test,
This is the package.json file
|
Still having the issues with sass 1.42.1 and boostrap 5.1.1. Had to fall back to sass 1.39.2 to be able compile bootstrap 5.1.1 |
I have the same issue with mwc checkbox:
|
@maicol07 What are you expected to get for |
That's not a file of mine. It's a file of MWC checkbox (a library I use in my project) |
Well, if I look at the |
Yes, you're right, because that file belongs to a dependency of mwc checkbox: mdc checkbox. Here is the related lines: |
@maicol07 and they already fixed the issue in their code (but they haven't released it yet) when they were intended to use a string containing a template for a |
Oh, yeah, you're right. I haven't read the last commit |
@maicol07 I suggest you close this issue then (I cannot do it myself, as I'm neither the author nor a maintainer, but only a contributor) |
I don't know if the OP has fixed his issue yet |
@maicol07 ah yeah, I forgot that your reported your own issue in response to a different one. |
@kris2kris That isn't a minimal reproduction—I'm looking for a single Sass file without any dependencies that compiles to something unexpected. Nevertheless, I tried installing that version of bootstrap and running |
I tried debugging this in create-react-app, and the error does not come from the Sass compiler at all. For reference, here is the stack trace I managed to get:
|
Thanks for debugging, @stof! In that case, I'll close this down. |
* fixes double dep of babel loader and jest * Update HomeReelItem.js * fix build storybook - remove global bootstrap * add dark mode * Update package.json $ NODE_OPTIONS=--openssl-legacy-provider build-storybook -s public --quiet /opt/hostedtoolcache/node/16.18.1/x64/bin/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS error Command failed with exit code 9. * remove automatic test temporarily * downgrade sass to 1.39 following issue in dart sass sass/dart-sass#1496 * Update storybook-test.yml * Update storybook-test.yml Co-authored-by: Daniele Guido <gui.daniele@gmail.com>
Hello,
The following code of bootstrap produce a build error since sass 1.40.0 (https://github.com/twbs/bootstrap/blob/main/scss/mixins/_grid.scss)
If I remove the minus sign before 1 or .5 it works. I'm not sure that multiplication should failed because of a minus sign.
The text was updated successfully, but these errors were encountered: