-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Compilation issue with newer version of SASS #4032
Comments
From my quick googling it seems like you can work around this by using |
I tried with |
If you add a
-@extend .#{$ns}-menu-item:hover;
+@extend .#{$ns}-menu-item, :hover; |
node-sass is deprecated in favour of sass (dart-sass) in Node 14. So this needs addressing sooner than later. |
Hi everyone! Just remind that |
Hey, |
This blog post talks about the tradeoffs between the sass versions. It sounds like dart-sass's JS package will slow down our compilation time, but if it's good enough for the bootstrap project, it's probably good enough for us... I will work on this some time in the next 6-8 weeks, but in the meantime it's open for contributions. I will need to see a performance comparison in this project. |
Just wanted to point out that |
Hi, any plans to migrate to |
I can't upgrade to node 16 because node-sass isn't compatible with it. Any plans to prioritize the upgrade to |
I understand the importance of this issue. We're planning to migrate to dart-sass within the next month or two. |
This breaks the CSS thus visuals of the The usage of SASS by Blueprint is quite advanced, so I'm not sure what's going on. It seems to be an issue with CSS selector priority. The attributes from |
@adidahiya Any updates on this issue? Are there any time estimations? We are migrating our tooling to vitejs and this is a blocker at the moment since Vite doesn't support node-sass. |
Heads up to anyone in this thread who is importing Blueprint While the ability to customize Blueprint's Sass variables to achieve some basic "theme" variations can be useful, I consider this a feature which uses semi-private APIs. Blueprint's API surface area is already very large, and I do not wish to make its Sass syntax part of the public API. To that end, it is not guaranteed to be protected from breaking changes under semantic versioning. I plan to migrate Blueprint's Sass code from node-sass to dart-sass (using the work in #4820 and #5216) in a 4.x minor release, likely landing in v4.1.0. Styles and Sass/Less variables will continue to be backwards-compatible, as they have always been public API. But if you are pulling in the |
@adidahiya if scss variables are not public API, it would be nice to have an official/public way to customize things like colors. A lot of people want to use blueprintjs but they want to brand it a bit by changing the default blue. It would be nice to offer some supported way to do it, like other components libraries do |
@lwouis yep, that would be a nice feature. I'm open to ideas for proposals on how to do this in a clean way that doesn't add too much maintenance burden. We can discuss such proposals in a new issue thread. |
I started #5297 to discuss this. |
Building Blueprint 4 from the SCSS source requires custom Sass functions [1]. As we’re using react-scripts, we can’t directly modify Webpack loader options. Common workarounds include libraries like react-scripts-rewired, craco, and others. Most of them aren’t actively maintained, but craco’s latest alpha release has support for react-scripts v5, so I’m using this for now. In the mid/long term, I hope to get rid of react-scripts/Webpack and be able to use a simpler build setup. [1]: palantir/blueprint#4032 (comment)
Building Blueprint 4 from the SCSS source requires custom Sass functions [1]. As we’re using react-scripts, we can’t directly modify Webpack loader options. Common workarounds include libraries like react-scripts-rewired, craco, and others. Most of them aren’t actively maintained, but craco’s latest alpha release has support for react-scripts v5, so I’m using this for now. In the mid/long term, I hope to get rid of react-scripts/Webpack and be able to use a simpler build setup. [1]: palantir/blueprint#4032 (comment)
When trying to import to blueprint using SASS, error is encountered.
Environment
Steps to reproduce
@import "~@blueprintjs/core/src/blueprint";
Actual behavior
Expected behavior
There should be no error.
The text was updated successfully, but these errors were encountered: