-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: DaisyUI hangs Docker builds for 64 bit platforms #3030
Comments
Thank you @nsadeh
for reporting issues. It helps daisyUI a lot 💚
|
It's probably an issue from one of the build tools or their dependencies. And since it's not giving an error, it's not easy to guess which one is the problem. Can you try with the latest version of Node and the latest version of all NPM dependencies? |
Here are my dependencies:
Here is a simplified dockerfile that has the same issue: # Stage 1: Build the project
FROM node:latest AS builder
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json (or npm-shrinkwrap.json) for npm install
COPY package*.json ./
COPY elm-tooling.json ./
# Install dependencies
RUN npm cache clean --force
RUN npm install
# Copy the rest of your application's source code from your host to your image filesystem.
COPY . .
# Build the project
RUN npm run build
CMD ["echo" "Hello there!"] It still hangs. I realize this is a difficult bug to solve. Could it be in the Tailwind plugin code rather than DaisyUI? |
You don't need Also you can try using TailwindCSS CLI instead of |
I'll try that setup. I use a framework called elm-pages which runs with Vite, and haven't had luck with tailwind cli so far which is why I used postcss this far. At this point I removed Daisy UI from my project and refactored it out so the deploy can proceed, but if I have time this weekend I'll try to work it back in. |
I'm going to close this issue because the problem can't be from daisyUI. it's probably one of build tools. |
@AndreyBarkov can you share the setup pipeline for tour CSS file? How are you generating the CSS? Is it Tailwind CLI? |
Just started experiencing this as well, going to probably end up switching to another component library but would love to figure out what's going on. Anyone on this thread resolve the issue? Utilzing the tailwind CLI via rails assets compilation. I've tried modifying my tailwind.config.js to comment out everything but the
|
I have the same issue, and I've confirmed that commenting out the edit: Some similar issues with Node processes hanging in docker builds: |
I'm experiencing the same error. Does anyone have a workaround in mind? edit: downgrade to Node 21. Solves the issue for me for now |
Also running into this! The logs and examples others have shown mirror exactly what I'm seeing. My exact example is running tailwindcss w/ daisyui as part of precompiling assets for a rails app. |
Try changing or upgrading your build tool. Try updating the dependencies related to CSS process. Try changing Node version. daisyUI is a plugin for Tailwind CSS. It adds CSS class names to Tailwind CSS. If your setup can not handle processing the CSS, it's a problem from the build tool and there's nothing we can fix on daisyUI side. |
I can confirm this issue, specifically when building a docker image for linux/amd64 on macOS 15.1.1 (M1 Mac). Notably, the build doesn't hang in other environments I've tested: either on a native linux/amd64 machine (Fedora 41) or when using Lima to run a QEMU linux/amd64 VM (using this config) with Lima on macOS ARM. |
I'm also facing the same issue. It happes when i add daisyUI, everything else was working fine |
I understand that you're experiencing the issue WHEN you add daisyUI. But daisyUI is not the issue. Your build tool can not build the new CSS for whatever reason. There's nothing we can help about here. |
What version of daisyUI are you using?
4.10.5
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
not a UI issue
Describe your issue
I have a server-rendered project that uses DaisyUI. It's being deployed on Google Cloud Run, which requires docker containers to be built for 64bit platforms.
When I run the build command for Docker (see below), the build hangs at the
npm run build
command perpetually. If I remove dailyui from the plugins list intailwind.config.js
, then the build runs just fine. I can also keep Daisy, but then I have to drop the platform spec from the docker build command, which makes the image undeployable in GCP.Here's my Dockerfile:
Here's the build command:
When DaisyUI is included in the Tailwind config, the build step looks like this:
It's stuck there perpetually. When it's not included in the config, it builds (although none of the daisy classes or themes are included). If I remove the
--platform linux/amd64
but keep the DaisyUI, it also builds fine, but is undeployable in GCP.The text was updated successfully, but these errors were encountered: