Skip to content

error on interpreting @plugin in css file #17794

Open
@stalexxx

Description

@stalexxx

Phoenixframework with no nodejs
v4.0.9-4.1.4
tailwindcss-macos-arm64 binary from https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64

...
@plugin "../vendor/daisyui" {
  themes: false;
}

Then i am doing


❯ ./tailwindcss-macos-arm64 -v
...
≈ tailwindcss v4.1.4

Done in 514ms

❯ ./tailwindcss-macos-arm64 -i  ./assets/css/app.css  -o priv/static/assets/css/app.css
Error: The plugin "../vendor/daisyui" does not accept options

but

as soon as I am changing to

@plugin "../vendor/daisyui";

i am getting

❯ ./tailwindcss-macos-arm64 -i  ./assets/css/app.css  -o priv/static/assets/css/app.css
TypeError: handler is not a function. (In 'handler(pluginApi)', 'handler' is an instance of Object)

i made reproducing repo https://github.com/stalexxx/tailwind_plugin_case

That is wierd, cause i tried on different env (linux) and both are not reproducing

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions