Attempting to use Bootstrap 4 a la carte in my Angular 6 app like so in my angular.json file...
"styles": [
"node_modules/bootstrap/scss/_functions.scss",
"node_modules/bootstrap/scss/_variables.scss",
"node_modules/bootstrap/scss/_mixins.scss",
"src/styles.scss"
]
Which yields this error in the terminal after sass load attempt is made...
ERROR in ./node_modules/bootstrap/scss/_variables.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./node_modules/bootstrap/scss/_variables.scss) Module build failed (from ./node_modules/sass-loader/lib/loader.js):
undefined ^ Argument
$color
ofdarken($color, $amount)
must be a color
This is the line in question in _variables.scss:
$link-hover-color: darken($link-color, 15%) !default;
Two lines above it's declared:
$link-color: theme-color("primary") !default;
I've looked through many possible solutions on here but most of them say to put functions before vars which is already done yet the error still persists.
Any help greatly appreciated.
$color
's value? - rileyjsumner$link-hover-color: darken($link-color, 15%) !default;
Two lines above it's declared:$link-color: theme-color("primary") !default;
- seguraMode$link-color
whereas the error message cites$color
- are you using the proper variables? - rileyjsumner