Skip to content

bug: build error: TypeError: k is not a function #3933

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

Closed
bfallik-invaluable opened this issue Jun 2, 2025 · 3 comments
Closed

bug: build error: TypeError: k is not a function #3933

bfallik-invaluable opened this issue Jun 2, 2025 · 3 comments

Comments

@bfallik-invaluable
Copy link

Reproduction URL (Required)

https//invalid.link/this-is-a-build-failure

What version of daisyUI are you using?

v5.0.43

Which browsers are you seeing the problem on?

No response

Describe your issue

Thanks for all your hard work on DaisyUI!

I'm trying to follow the instructions for Using daisyUI with Tailwind CSS Standalone CLI but the build stage fails with a strange error:

/opt/homebrew/bin/tailwindcss -i ui/css/input.css -o ui/static/css/output.css
≈ tailwindcss v4.1.8

TypeError: k is not a function

I've installed tailwindcss via brew:

❯ tailwindcss --version | head -n 1
≈ tailwindcss v4.1.8

/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */

input.css is minimal:

❯ cat ui/css/input.css
@import "tailwindcss";
@plugin "../js/daisyui.js";

I don't know enough about Javascript to debug this further. Any ideas? Thanks in advance.

Copy link

github-actions bot commented Jun 2, 2025

Thank you @bfallik-invaluable for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@sulimanbenhalim
Copy link
Contributor

TL;DR: You're using the Homebrew Node.js wrapper instead of the native binary

Homebrew's tailwindcss is a shell script that wraps Node.js, but daisyUI standalone needs the actual binary from GitHub releases

Quick fix:

curl -sLo tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss
./tailwindcss -i input.css -o output.css

@bfallik-invaluable
Copy link
Author

Thanks @sulimanbenhalim

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

No branches or pull requests

2 participants