-
Notifications
You must be signed in to change notification settings - Fork 30
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
sass-embedded error with bootstrap 5.3.3 #305
Comments
I tested locally with a standalone setup without vite, both new API and legacy API worked just fine. This seems to be issue only when compiling via vite as pointed out by this comment: twbs/bootstrap#39978 (comment)
|
Can you provide a minimal reproduction of this that doesn't involve a bunch of external dependencies? |
Sure. As a reminder:
https://codesandbox.io/p/devbox/competent-mahavira-forked-3jh7fj?file=%2Fpackage.json |
I'm looking for a reproduction without vite as well—for all we know, this is a bug in Vite's custom importer. |
Was this resolved, or just closed? UnresolvableCannot resolve '--bs-body-text-align' custom property Missing values--bs-btn-font-family: ; |
Info dist dependencies: maintainers:
dist-tags: |
@Digital-Pig-LLC none of those errors are coming from Sass. |
No, they appear in the compiled CSS which is compiled from bootstraps SCSS files using sass-embedded@1.77.8. I ran the request as follows so ensure it wasn't my PHPStorm that was causing the issue: My cpnl.scss has an import from root.scss, which is where the imports for bootstrap exist. A very simple case of root.scss: @import "../../node_modules/bootstrap/scss/bootstrap"; and in my cpnl.scss: The resulting CSS file ends up with 30 errors, as shown above, regardless of using bootstrap v5.3.2 or 5.3.3 as source. |
I'm not sure what you mean by an error "appearing in" compiled CSS. CSS itself doesn't produce any errors—only tools that consume it. If you have a specific case where Embedded Sass is producing the wrong output, especially if you can produce a minimal reproduction of that case, I can look into it. But this doesn't really give me any information about what Sass is doing or what behavior you expect. |
Ok, maybe I'm not using correct terminology or maybe we're just not understanding each other. Surely if this were a global problem with all compilers, there would be a lot of invalid CSS and Bootstrap would make us aware...how did we even get to 5.3.3 as stable if this were the case. Uncompiled -> sass-embedded -> compiled...is that not the workflow? Please correct me if I'm wrong in any of this. I'm certainly no SCSS wizard |
What is the CSS output you expect, the CSS output you're actually getting, and the Sass that produces it? |
For embedded-host-node maintainers, I hope I don't overstep, feel free to hide this message if it generates noise :) Hey @Digital-Pig-LLC, one of the Bootstrap maintainers here. |
I'm going to close this out since the original reporter has not provided further information for over a month. |
Since bootstrap 5.3.3, sass-embedded throw an error.
The problem was not present with bootstrap 5.3.2 and earlier, and is not present with normal sass package.
Here is the link to the open issue in bootstrap repo, with a reduced test case in a reproducible environment:
twbs/bootstrap#39978 (comment)
More specifically, the problem seems to be this line. If we remove it, everything runs fine:
https://github.com/twbs/bootstrap/blob/d2d4581790da2618d3fe063dafaa6205c73aabdd/scss/_variables.scss#L1751
The text was updated successfully, but these errors were encountered: