DioxusLabs/dioxus · error

Warning: {} ./{}:{}:{}

Error message

Warning: {}
    ./{}:{}:{}

What it means

Not an error: the SCSS (grass) compiler logger forwarding a compile warning to tracing, formatted with the warning message, source file, and line/column of the offending Sass. The build continues; the named stylesheet should be fixed.

Source

Thrown at packages/cli/src/opt/css.rs:199

    Ok(())
}

/// Logger for Grass that re-uses their StdLogger formatting but with tracing.
#[derive(Debug)]
struct ScssLogger {}

impl grass::Logger for ScssLogger {
    fn debug(&self, location: SpanLoc, message: &str) {
        tracing::debug!(
            "{}:{} DEBUG: {}",
            location.file.name(),
            location.begin.line + 1,
            message
        );
    }

    fn warn(&self, location: SpanLoc, message: &str) {
        tracing::warn!(
            "Warning: {}\n    ./{}:{}:{}",
            message,
            location.file.name(),
            location.begin.line + 1,
            location.begin.column + 1
        );
    }
}

/// Hash the inputs to the scss file
pub(crate) fn hash_scss(
    scss_options: &CssAssetOptions,
    source: &Path,
    hasher: &mut impl Hasher,
) -> anyhow::Result<()> {
    // Grass doesn't expose the ast for us to traverse the imports in the file. Instead of parsing scss ourselves
    // we just hash the expanded version of the file for now
    let css = compile_scss(scss_options, source)?;

View on GitHub (pinned to 24f6a829df)

Solutions

  1. Fix the CSS at the file, line, and column shown in the warning; the CSS optimizer reported a problem at that location.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/cli/src/opt/css.rs:199 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/ea18bf1a2c7e3f2f. Report an issue: GitHub.