question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build errors with Dart Sass 1.40.0

See original GitHub issue

Updating 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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
b8necommented, Sep 14, 2021

+1 Same issue with Bootstrap v4. I didn’t upgrade anything but build started failing. Forcing "sass": "1.39.2" fixed it.

1reaction
rensprcommented, Sep 14, 2021

Same here. Downgrading to sass 1.39.2 fixed it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found