Importing bootstrap.scss breaks SASS compilation
See original GitHub issue- Operating system and version: WIndows 10
- Browser and version: Chrome 93
- Suggested fix: Use
math.max()
instead ofmax()
.
I have create-react-app project (react-scripts@4.0.3). It works if I do npm start
, but not when npm run build
.
This error occurs if you’re using Dart SASS 1.40.0 and higher.
SassError: 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 @use
src\styles\custom.scss 1:1 @use
src\styles\index.scss 1:1 root stylesheet
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Importing Bootstrap 4 variables.scss breaks Angular 6 ...
Whenever I try to @import '~bootstrap/scss/_variables.scss'; from within a component's scss file, the compilation breaks and I am getting ...
Read more >Sass · Bootstrap v5.0
In your custom.scss , you'll import Bootstrap's source Sass files. You have two options: include all of Bootstrap, or pick the parts you...
Read more >error compiling scss with node, cant reference bootstrap files
i think it wants to use sass and scss and compile them as there used to be a folder for each ... node_modules\bootstrap\scss\_variables.scss...
Read more >How to customize Bootstrap 4 using Sass
The bootstrap.scss file contains what .scss files need to be compiled. If you have a look into that file you will see a...
Read more >sass-loader - webpack - JS.ORG
Thus you can import your Sass modules from node_modules . ... Webpack needs to distinguish between bootstrap and ~bootstrap because CSS and Sass...
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
Uninstall
sass
, installnode-sass
.For me it does not work with 1.42.0, 1.39.2 is the last version I can use.