filamentphp/filament · error · LogicException

Stylesheet with ID [{$id}] not found for package [{$package}

Error message

Stylesheet with ID [{$id}] not found for package [{$package}].

What it means

Error "Stylesheet with ID [{$id}] not found for package [{$package}]." thrown in filamentphp/filament.

Source

Thrown at packages/support/src/Assets/AssetManager.php:247

        $assets = $this->getAssets($this->styles, $packages);

        return $assets;
    }

    public function getStyleHref(string $id, string $package = 'app'): string
    {
        /** @var array<Css> $styles */
        $styles = $this->getStyles([$package]);

        foreach ($styles as $style) {
            if ($style->getId() !== $id) {
                continue;
            }

            return $style->getHref();
        }

        throw new LogicException("Stylesheet with ID [{$id}] not found for package [{$package}].");
    }

    /**
     * @param  array<string> | null  $packages
     * @return array<string, mixed>
     */
    public function getCssVariables(?array $packages = null): array
    {
        $variables = [];

        foreach ($this->cssVariables as $package => $packageVariables) {
            if (
                ($packages !== null) &&
                filled($package) &&
                (! in_array($package, $packages))
            ) {
                continue;
            }

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/support/src/Assets/AssetManager.php:247 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/781606733e6991c8. Report an issue: GitHub.