-
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
variables.scss is incompatible with node-sass #5244
Comments
I updated to @blueprintjs/core v4.1.1 and am seeing an error related to variables.scss when trying to build our project with Parcel.
I know you said pulling in |
@bjornhanson thanks for the flag; do you know if you're bundling with node-sass or dart-sass? you would have |
We're using dart-sass. We've got |
@bjornhanson Are you importing a file that includes |
We're importing If I import |
Environment
Bug
@blueprintjs/core v4.1.1 contains a
lib/scss/variables.scss
file which uses@use "sass:math"
andmath.div(...)
. This language feature is only available in Dart Sass v1.33+, and not available in LibSass / node-sass (see docs). This means that node-sass compatibility is broken in the latest release.Solution
Update
generate-css-variables
script, useget-sass-vars
functionality (we are already doing this to generate Less variables) to simplify the variable values and compute the math whichmath.div()
is currently doing.The text was updated successfully, but these errors were encountered: