mlaursen / react-md

React material design - An accessible React component library built from the Material Design guidelines in Sass
https://react-md.dev
MIT License
2.34k stars 303 forks source link

SassError: argument `$color` of `red($color)` must be a color #1422

Closed Emmijozzy closed 1 year ago

Emmijozzy commented 1 year ago

ERROR in ./src/assets/scss/themes.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[4]!./src/assets/scss/themes.scss) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: argument $color of red($color) must be a color on line 185 of node_modules/bootstrap/scss/_functions.scss, in function red from line 185 of node_modules/bootstrap/scss/_functions.scss, in function luminance from line 174 of node_modules/bootstrap/scss/_functions.scss, in function contrast-ratio from line 159 of node_modules/bootstrap/scss/_functions.scss, in function color-contrast from line 7 of node_modules/bootstrap/scss/_accordion.scss from line 29 of node_modules/bootstrap/scss/bootstrap.scss from line 15 of src/assets/scss/config/saas/bootstrap.scss from line 2 of src/assets/scss/themes.scss

"r": red($color),

---------^

SassError: SassError: argument $color of red($color) must be a color

mlaursen commented 1 year ago

Could you provide some more information or code for the src/assets/scss/themes.scss file? By looking at the stack trace, it looks like this is an issue in bootstrap and not this library.