Build errors with Dart Sass 1.40.0
See original GitHub issueUpdating from Dart Sass 1.39.2 to 1.40.0 leads to build errors when building Bootstrap 5:
Build Error (PostcssCompiler) in /home/boris/project/node_modules/bootstrap/scss/mixins/_border-radius.scss:9:36
0.2rem and 0 are incompatible.
╷
9 │ $return: append($return, max($value, 0));
│ ^^^^^^ 0.2rem
│ ━ 0
╵
node_modules/bootstrap/scss/mixins/_border-radius.scss 9:36 valid-radius()
node_modules/bootstrap/scss/mixins/_border-radius.scss 20:20 border-radius()
node_modules/bootstrap/scss/_reboot.scss 322:3 @import
node_modules/bootstrap/scss/bootstrap.scss 17:9 @import
There are perhaps more cases of this, I guess this is just the first one.
OS is Linux.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Problem since 1.40.0 with bootstrap 5 · Issue #1496 · sass/dart ...
I tried debugging this in create-react-app, and the error does not come from the Sass compiler at all. It comes from postcss-values-parser (used ......
Read more >sass 1.40.0 | Dart Package - Pub.dev
A Dart implementation of Sass. Sass makes CSS fun again. Sass logo, npm statistics, Pub version · GitHub actions build status · @SassCSS...
Read more >1.40.0 - sass - npm
This package is a distribution of Dart Sass, compiled to pure JavaScript with no native code or external dependencies.
Read more >Breaking Change: Slash as Division - Sass
Built -In Modules ... Sass currently treats / as a division operation in some contexts and a separator in others. ... Dart Sass:...
Read more >Sass compile error when using min() or max() - Roots Discourse
I'm getting an error when i run yarn build: Module build failed: ModuleBuildError: Module ... just make sure you're not using 1.40.0 and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 Same issue with Bootstrap v4. I didn’t upgrade anything but build started failing. Forcing
"sass": "1.39.2"
fixed it.Same here. Downgrading to sass 1.39.2 fixed it.