DioxusLabs/dioxus · error

Missing tailwindcss@

Error message

Missing tailwindcss@{}

What it means

Failure of Tailwind::get_binary_path in no-download mode (CliSettings::prefer_no_downloads): which::which("tailwindcss") found no system-installed tailwindcss binary for the pinned version, so the CLI cannot run the Tailwind build step.

Solutions

  1. The required tailwindcss version is missing. Let dx download it or install it manually.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at packages/cli/src/tailwind.rs:162 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23). Data as JSON: /api/errors/ac3b59a95ea092e2. Report an issue: GitHub.

Appendix: source

Thrown at packages/cli/src/tailwind.rs:162

        let proc = cmd
            .arg("--input")
            .arg(input_path)
            .arg("--output")
            .arg(output_path)
            .args(watch.then_some("--watch"))
            .current_dir(manifest_dir)
            .kill_on_drop(true)
            .stdin(Stdio::piped())
            .stdout(Stdio::null())
            .stderr(Stdio::null())
            .spawn()?;

        Ok(proc)
    }

    pub fn get_binary_path(&self) -> anyhow::Result<PathBuf> {
        if CliSettings::prefer_no_downloads() {
            which::which("tailwindcss").map_err(|_| anyhow!("Missing tailwindcss@{}", self.version))
        } else {
            let installed_name = self.installed_bin_name();
            let install_dir = self.install_dir()?;
            Ok(install_dir.join(installed_name))
        }
    }

    fn installed_bin_name(&self) -> &'static str {
        if cfg!(windows) {
            "tailwindcss.exe"
        } else {
            "tailwindcss"
        }
    }

    async fn install_github(&self) -> anyhow::Result<()> {
        tracing::debug!(
            "Attempting to install tailwindcss@{} from GitHub",

View on GitHub (pinned to 24f6a829df)