-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
Open
Labels
Description
Prerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
Describe the issue
I am using Webpack to compile Bootstrap. Everything works just fine. But when inside a Docker container based on image node-24.8-bookworm-slim
the compilation fails because color-contrast
found "no color leading to 4:1 contrast ratio against #0d6efd".
That warning leads to this compilation error:
24.36 $color1: null is not a color.
24.36 ╷
24.36 846 │ $btn-link-focus-shadow-rgb: to-rgb(mix(color-contrast($link-color), $link-color, 15%)) !default;
24.36 │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24.36 ╵
I am on a Mac with M2 chip and platform: linux/x86_64
defined in the compose file.
Tried to hardcode $btn-link-focus-shadow-rgb: 0,0,0 !default
but then compilation stucks at ~40% with no error message.
Reduced test cases
Followed the Webpack docs to setup webpack here's the dockerfile
FROM --platform=linux/amd64 docker.io/node:24.8-bookworm-slim AS client-builder
ARG APP_HOME=/app
WORKDIR ${APP_HOME}
COPY ./package.json ${APP_HOME}
RUN npm install && npm cache clean --force
COPY . ${APP_HOME}
RUN npm run build
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Firefox
What version of Bootstrap are you using?
5.3.8