Skip to content

Conversation

mraible
Copy link
Owner

@mraible mraible commented May 9, 2024

No description provided.

@mraible
Copy link
Owner Author

mraible commented May 9, 2024

After upgrading to 8.4.0, I'm getting the following error when trying to compile the frontend.

./src/main/webapp/content/scss/global.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
$color1: var(--bs-tertiary-bg) is not a color.
   ╷
35 │   background-color: mix($dropdown-link-hover-bg, $dropdown-link-active-bg, 50%);
   │                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  src/main/webapp/content/scss/global.scss 35:21  root stylesheet

./src/main/webapp/content/scss/global.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
$color1: var(--bs-tertiary-bg) is not a color.
   ╷
35 │   background-color: mix($dropdown-link-hover-bg, $dropdown-link-active-bg, 50%);
   │                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  src/main/webapp/content/scss/global.scss 35:21  root stylesheet

@mshima Any idea why this is happening?

Update: Nevermind. I figured it out. I was missing the following variables from _bootstrap-variables.scss:

$dropdown-link-hover-color: white;
$dropdown-link-hover-bg: #343a40;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant